Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Private Types | List of all members
cEmptyStructure Class Reference

A cStructure descendant representing an empty structure. More...

Inheritance diagram for cEmptyStructure:
Inheritance graph
[legend]
Collaboration diagram for cEmptyStructure:
Collaboration graph
[legend]

Public Member Functions

 cEmptyStructure (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ)
 
- Public Member Functions inherited from cGridStructGen::cStructure
 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 size_t GetCacheCost (void) const
 Returns the cost of keeping this structure in the cache. More...
 
virtual ~cStructure ()
 

Protected Member Functions

virtual void DrawIntoChunk (cChunkDesc &a_ChunkDesc) override
 Draws self into the specified chunk. More...
 

Private Types

using Super = cGridStructGen::cStructure
 

Additional Inherited Members

- Public Attributes inherited from cGridStructGen::cStructure
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

A cStructure descendant representing an empty structure.

Used when the generator descended from cGridStructGen doesn't return any structure, to keep at least the Origin coords so that the structure isn't queried over and over again.

Definition at line 19 of file GridStructGen.cpp.

Member Typedef Documentation

◆ Super

Definition at line 22 of file GridStructGen.cpp.

Constructor & Destructor Documentation

◆ cEmptyStructure()

cEmptyStructure::cEmptyStructure ( int  a_GridX,
int  a_GridZ,
int  a_OriginX,
int  a_OriginZ 
)
inline

Definition at line 26 of file GridStructGen.cpp.

Member Function Documentation

◆ DrawIntoChunk()

virtual void cEmptyStructure::DrawIntoChunk ( cChunkDesc a_ChunkDesc)
inlineoverrideprotectedvirtual

Draws self into the specified chunk.

Implements cGridStructGen::cStructure.

Definition at line 32 of file GridStructGen.cpp.


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