Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Represents a single structure that occupies the grid point. More...
#include <GridStructGen.h>
Public Member Functions | |
cStructure (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) | |
Creates a structure that has its origin set at the specified coords. More... | |
virtual void | DrawIntoChunk (cChunkDesc &a_ChunkDesc)=0 |
Draws self into the specified chunk. More... | |
virtual size_t | GetCacheCost (void) const |
Returns the cost of keeping this structure in the cache. More... | |
virtual | ~cStructure () |
Public Attributes | |
int | m_GridX |
The grid point for which the structure is generated. More... | |
int | m_GridZ |
int | m_OriginX |
The origin (the coords for which the structure is generated) More... | |
int | m_OriginZ |
Represents a single structure that occupies the grid point.
Knows how to draw itself into a chunk.
Definition at line 49 of file GridStructGen.h.
|
inline |
Creates a structure that has its origin set at the specified coords.
Definition at line 60 of file GridStructGen.h.
|
inlinevirtual |
Definition at line 69 of file GridStructGen.h.
|
pure virtual |
Draws self into the specified chunk.
Implemented in cRoughRavine, cStructGenRavines::cRavine, cEmptyStructure, cDungeonRoom, cStructGenWormNestCaves::cCaveSystem, cVillageGen::cVillage, cPrefabStructure, and cStructGenMineShafts::cMineShaftSystem.
|
inlinevirtual |
Returns the cost of keeping this structure in the cache.
Definition at line 75 of file GridStructGen.h.
int cGridStructGen::cStructure::m_GridX |
The grid point for which the structure is generated.
Definition at line 53 of file GridStructGen.h.
int cGridStructGen::cStructure::m_GridZ |
Definition at line 53 of file GridStructGen.h.
int cGridStructGen::cStructure::m_OriginX |
The origin (the coords for which the structure is generated)
Definition at line 56 of file GridStructGen.h.
int cGridStructGen::cStructure::m_OriginZ |
Definition at line 56 of file GridStructGen.h.