Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Public Attributes | List of all members
cGridStructGen::cStructure Class Referenceabstract

Represents a single structure that occupies the grid point. More...

#include <GridStructGen.h>

Inheritance diagram for cGridStructGen::cStructure:
Inheritance graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ cStructure()

cGridStructGen::cStructure::cStructure ( int  a_GridX,
int  a_GridZ,
int  a_OriginX,
int  a_OriginZ 
)
inline

Creates a structure that has its origin set at the specified coords.

Definition at line 60 of file GridStructGen.h.

◆ ~cStructure()

virtual cGridStructGen::cStructure::~cStructure ( )
inlinevirtual

Definition at line 69 of file GridStructGen.h.

Member Function Documentation

◆ DrawIntoChunk()

virtual void cGridStructGen::cStructure::DrawIntoChunk ( cChunkDesc a_ChunkDesc)
pure virtual

◆ GetCacheCost()

virtual size_t cGridStructGen::cStructure::GetCacheCost ( void  ) const
inlinevirtual

Returns the cost of keeping this structure in the cache.

Definition at line 75 of file GridStructGen.h.

Member Data Documentation

◆ m_GridX

int cGridStructGen::cStructure::m_GridX

The grid point for which the structure is generated.

Definition at line 53 of file GridStructGen.h.

◆ m_GridZ

int cGridStructGen::cStructure::m_GridZ

Definition at line 53 of file GridStructGen.h.

◆ m_OriginX

int cGridStructGen::cStructure::m_OriginX

The origin (the coords for which the structure is generated)

Definition at line 56 of file GridStructGen.h.

◆ m_OriginZ

int cGridStructGen::cStructure::m_OriginZ

Definition at line 56 of file GridStructGen.h.


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