TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Grid Class Reference

Public Types

enum  Level { Basic , Outer1 , Outer2 }
 

Public Member Functions

 Grid (int width, int height, int depth, int cellSize)
 
void setSize (int cellSize)
 
void init (int width, int height, int depth, int cellSize)
 
void createCells (Grid::Level size)
 
void addLink (LinkEntity *link, Grid::Level m_level)
 
std::vector< Cell * > getLinkCells (const LinkEntity &link, Grid::Level m_level)
 
void addLink (LinkEntity *link, std::vector< Cell * > cell)
 
void addEmpty (EmptyEntity *entity, Grid::Level m_level)
 
void addNode (NodeEntity *entity, Grid::Level m_level)
 
void addEmpty (EmptyEntity *entity, Cell *cell)
 
void addNode (NodeEntity *entity, Cell *cell)
 
CellgetCell (int x, int y, int z, Grid::Level m_level)
 
CellgetCell (const Entity &position, Grid::Level m_level)
 
std::vector< Cell * > getAdjacentCells (int x, int y, int z, Grid::Level m_level)
 
std::vector< Cell * > getAdjacentCells (const Entity &entity, Grid::Level m_level)
 
std::vector< Cell > & getCells (Grid::Level m_level)
 
int getCellSize ()
 
int getNumXCells ()
 
int getNumYCells ()
 
int getNumZCells ()
 
bool setIntersectedCameraCells (ICamera &camera)
 
std::vector< Cell * > getIntersectedCameraCells (ICamera &camera)
 
template<typename T >
std::vector< T * > getRevealedEntitiesInCameraCells ()
 
template<typename T >
std::vector< T * > getEntitiesInCameraCells ()
 
std::vector< LinkEntity * > getLinksInCameraCells ()
 
bool gridLevelChanged ()
 
Level getGridLevel ()
 
void setGridLevel (Level newLevel)
 
int getLevelCellScale ()
 
int getLevelCellScale (Level level)
 

The documentation for this class was generated from the following files: