Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
cEnderDragonFightStructuresGen Class Reference

#include <EnderDragonFightStructuresGen.h>

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

Classes

struct  sTowerProperties
 

Public Member Functions

 cEnderDragonFightStructuresGen (int a_Seed)
 
void Init (const AString &a_TowerProperties, int a_Radius)
 
- Public Member Functions inherited from cFinishGen
virtual ~cFinishGen ()
 

Protected Member Functions

void GenFinish (cChunkDesc &a_ChunkDesc) override
 
void PlaceTower (cChunkDesc &a_ChunkDesc, const sTowerProperties &a_TowerProperties)
 

Protected Attributes

cBlockArea m_Fountain
 
int m_MaxX = 1
 
int m_MaxZ = 1
 
int m_MinX = -1
 
int m_MinZ = -1
 
cNoise m_Noise
 
std::map< cChunkCoords, std::vector< sTowerProperties > > m_TowerPos
 

Static Protected Attributes

static const std::array< Vector3i, 26 > m_CageAir
 
static const std::array< Vector3i, 48 > m_CagePos
 

Detailed Description

Definition at line 12 of file EnderDragonFightStructuresGen.h.

Constructor & Destructor Documentation

◆ cEnderDragonFightStructuresGen()

cEnderDragonFightStructuresGen::cEnderDragonFightStructuresGen ( int  a_Seed)

Definition at line 60 of file EnderDragonFightStructuresGen.cpp.

Member Function Documentation

◆ GenFinish()

void cEnderDragonFightStructuresGen::GenFinish ( cChunkDesc a_ChunkDesc)
overrideprotectedvirtual

Implements cFinishGen.

Definition at line 154 of file EnderDragonFightStructuresGen.cpp.

◆ Init()

void cEnderDragonFightStructuresGen::Init ( const AString a_TowerProperties,
int  a_Radius 
)

Definition at line 69 of file EnderDragonFightStructuresGen.cpp.

◆ PlaceTower()

void cEnderDragonFightStructuresGen::PlaceTower ( cChunkDesc a_ChunkDesc,
const sTowerProperties a_TowerProperties 
)
protected

Definition at line 220 of file EnderDragonFightStructuresGen.cpp.

Member Data Documentation

◆ m_CageAir

const std::array< Vector3i, 26 > cEnderDragonFightStructuresGen::m_CageAir
staticprotected
Initial value:
=
{
{
{-1, -1, -1}, {0, -1, -1}, {1, -1, -1},
{-1, -1, 1}, {0, -1, 1}, {1, -1, 1},
{-1, -1, 0}, {1, -1, 0},
{-1, 0, -1}, {0, 0, -1}, {1, 0, -1},
{-1, 0, 1}, {0, 0, 1}, {1, 0, 1},
{-1, 0, 0}, {1, 0, 0}, {0, 0, 0},
{-1, 1, -1}, {0, 1, -1}, {1, 1, -1},
{-1, 1, 1}, {0, 1, 1}, {1, 1, 1},
{-1, 1, 0}, {1, 1, 0}, {0, 1, 0},
}
}

Definition at line 31 of file EnderDragonFightStructuresGen.h.

◆ m_CagePos

const std::array< Vector3i, 48 > cEnderDragonFightStructuresGen::m_CagePos
staticprotected
Initial value:
=
{
{
{-2, -1, -2}, {-2, -1, -1}, {-2, -1, 0}, {-2, -1, 1}, {-2, -1, 2},
{2, -1, -2}, {2, -1, -1}, {2, -1, 0}, {2, -1, 1}, {2, -1, 2},
{-1, -1, -2}, {0, -1, -2}, {1, -1, -2},
{-1, -1, 2}, {0, -1, 2}, {1, -1, 2},
{-2, 0, -2}, {-2, 0, -1}, {-2, 0, 0}, {-2, 0, 1}, {-2, 0, 2},
{2, 0, -2}, {2, 0, -1}, {2, 0, 0}, {2, 0, 1}, {2, 0, 2},
{-1, 0, -2}, {0, 0, -2}, {1, 0, -2},
{-1, 0, 2}, {0, 0, 2}, {1, 0, 2},
{-2, 1, -2}, {-2, 1, -1}, {-2, 1, 0}, {-2, 1, 1}, {-2, 1, 2},
{2, 1, -2}, {2, 1, -1}, {2, 1, 0}, {2, 1, 1}, {2, 1, 2},
{-1, 1, -2}, {0, 1, -2}, {1, 1, -2},
{-1, 1, 2}, {0, 1, 2}, {1, 1, 2},
}
}

Definition at line 30 of file EnderDragonFightStructuresGen.h.

◆ m_Fountain

cBlockArea cEnderDragonFightStructuresGen::m_Fountain
protected

Definition at line 32 of file EnderDragonFightStructuresGen.h.

◆ m_MaxX

int cEnderDragonFightStructuresGen::m_MaxX = 1
protected

Definition at line 34 of file EnderDragonFightStructuresGen.h.

◆ m_MaxZ

int cEnderDragonFightStructuresGen::m_MaxZ = 1
protected

Definition at line 34 of file EnderDragonFightStructuresGen.h.

◆ m_MinX

int cEnderDragonFightStructuresGen::m_MinX = -1
protected

Definition at line 34 of file EnderDragonFightStructuresGen.h.

◆ m_MinZ

int cEnderDragonFightStructuresGen::m_MinZ = -1
protected

Definition at line 34 of file EnderDragonFightStructuresGen.h.

◆ m_Noise

cNoise cEnderDragonFightStructuresGen::m_Noise
protected

Definition at line 28 of file EnderDragonFightStructuresGen.h.

◆ m_TowerPos

std::map<cChunkCoords, std::vector<sTowerProperties> > cEnderDragonFightStructuresGen::m_TowerPos
protected

Definition at line 29 of file EnderDragonFightStructuresGen.h.


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