Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JumpPointCache::RowRaw Struct Reference

Simple space-inefficient row storage. More...

Public Member Functions

size_t GetMemoryUsage () const
 
 RowRaw (int length)
 
void SetRange (int x0, int x1, bool obstruction)
 Set cells x0 <= x < x1 to have jump point x1. More...
 
void Get (int x, int &xp, bool &obstruction) const
 Returns the coordinate of the next jump point xp (where x < xp), and whether it's an obstruction point or jump point. More...
 
void Finish ()
 

Public Attributes

std::vector< u16data
 

Detailed Description

Simple space-inefficient row storage.

Constructor & Destructor Documentation

◆ RowRaw()

JumpPointCache::RowRaw::RowRaw ( int  length)
inline

Member Function Documentation

◆ Finish()

void JumpPointCache::RowRaw::Finish ( )
inline

◆ Get()

void JumpPointCache::RowRaw::Get ( int  x,
int &  xp,
bool &  obstruction 
) const
inline

Returns the coordinate of the next jump point xp (where x < xp), and whether it's an obstruction point or jump point.

◆ GetMemoryUsage()

size_t JumpPointCache::RowRaw::GetMemoryUsage ( ) const
inline

◆ SetRange()

void JumpPointCache::RowRaw::SetRange ( int  x0,
int  x1,
bool  obstruction 
)
inline

Set cells x0 <= x < x1 to have jump point x1.

Member Data Documentation

◆ data

std::vector<u16> JumpPointCache::RowRaw::data

The documentation for this struct was generated from the following file: