Pyrogenesis  trunk
Public Member Functions | Public Attributes | List of all members
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)
 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

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

Member Function Documentation

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

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

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

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

Member Data Documentation

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

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