|
| cDungeonRoom (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ, int a_HalfSizeX, int a_HalfSizeZ, int a_FloorHeight, cNoise &a_Noise) |
|
| 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 () |
|
|
Vector3i | DecodeChestCoords (int a_PosIdx, int a_SizeX, int a_SizeZ) |
| Decodes the position index along the room walls into a proper 2D position for a chest. More...
|
|
virtual void | DrawIntoChunk (cChunkDesc &a_ChunkDesc) override |
| Draws self into the specified chunk. More...
|
|
void | ReplaceCuboid (cChunkDesc &a_ChunkDesc, int a_StartX, int a_StartY, int a_StartZ, int a_EndX, int a_EndY, int a_EndZ, BLOCKTYPE a_DstBlockType) |
| Fills the specified area of blocks in the chunk with the specified blocktype if they are one of the overwritten block types. More...
|
|
void | ReplaceCuboidRandom (cChunkDesc &a_ChunkDesc, int a_StartX, int a_StartY, int a_StartZ, int a_EndX, int a_EndY, int a_EndZ, BLOCKTYPE a_DstBlockType1, BLOCKTYPE a_DstBlockType2) |
| Fills the specified area of blocks in the chunk with a random pattern of the specified blocktypes, if they are one of the overwritten block types. More...
|
|
void | TryPlaceChest (cChunkDesc &a_ChunkDesc, const Vector3i &a_Chest) |
| Tries to place a chest at the specified (absolute) coords. More...
|
|
Definition at line 27 of file DungeonRoomsFinisher.cpp.
◆ Super
◆ cDungeonRoom()
cDungeonRoom::cDungeonRoom |
( |
int |
a_GridX, |
|
|
int |
a_GridZ, |
|
|
int |
a_OriginX, |
|
|
int |
a_OriginZ, |
|
|
int |
a_HalfSizeX, |
|
|
int |
a_HalfSizeZ, |
|
|
int |
a_FloorHeight, |
|
|
cNoise & |
a_Noise |
|
) |
| |
|
inline |
◆ DecodeChestCoords()
Vector3i cDungeonRoom::DecodeChestCoords |
( |
int |
a_PosIdx, |
|
|
int |
a_SizeX, |
|
|
int |
a_SizeZ |
|
) |
| |
|
inlineprotected |
Decodes the position index along the room walls into a proper 2D position for a chest.
The Y coord of the returned vector specifies the chest's meta value.
Definition at line 103 of file DungeonRoomsFinisher.cpp.
◆ DrawIntoChunk()
virtual void cDungeonRoom::DrawIntoChunk |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
inlineoverrideprotectedvirtual |
◆ ReplaceCuboid()
void cDungeonRoom::ReplaceCuboid |
( |
cChunkDesc & |
a_ChunkDesc, |
|
|
int |
a_StartX, |
|
|
int |
a_StartY, |
|
|
int |
a_StartZ, |
|
|
int |
a_EndX, |
|
|
int |
a_EndY, |
|
|
int |
a_EndZ, |
|
|
BLOCKTYPE |
a_DstBlockType |
|
) |
| |
|
inlineprotected |
Fills the specified area of blocks in the chunk with the specified blocktype if they are one of the overwritten block types.
The coords are absolute, start coords are inclusive, end coords are exclusive.
Definition at line 131 of file DungeonRoomsFinisher.cpp.
◆ ReplaceCuboidRandom()
void cDungeonRoom::ReplaceCuboidRandom |
( |
cChunkDesc & |
a_ChunkDesc, |
|
|
int |
a_StartX, |
|
|
int |
a_StartY, |
|
|
int |
a_StartZ, |
|
|
int |
a_EndX, |
|
|
int |
a_EndY, |
|
|
int |
a_EndZ, |
|
|
BLOCKTYPE |
a_DstBlockType1, |
|
|
BLOCKTYPE |
a_DstBlockType2 |
|
) |
| |
|
inlineprotected |
Fills the specified area of blocks in the chunk with a random pattern of the specified blocktypes, if they are one of the overwritten block types.
The coords are absolute, start coords are inclusive, end coords are exclusive. The first blocktype uses 75% chance, the second 25% chance.
Definition at line 158 of file DungeonRoomsFinisher.cpp.
◆ TryPlaceChest()
Tries to place a chest at the specified (absolute) coords.
Does nothing if the coords are outside the chunk.
Definition at line 187 of file DungeonRoomsFinisher.cpp.
◆ m_Chest1
The (absolute) coords of the first chest.
The Y coord represents the chest's Meta value (facing).
Definition at line 92 of file DungeonRoomsFinisher.cpp.
◆ m_Chest2
The (absolute) coords of the second chest.
The Y coord represents the chest's Meta value (facing).
Definition at line 95 of file DungeonRoomsFinisher.cpp.
◆ m_EndX
◆ m_EndZ
◆ m_FloorHeight
int cDungeonRoom::m_FloorHeight |
|
protected |
◆ m_MonsterType
◆ m_StartX
int cDungeonRoom::m_StartX |
|
protected |
◆ m_StartZ
int cDungeonRoom::m_StartZ |
|
protected |
The documentation for this class was generated from the following file: