Files
cuberite-2a/src/Generating/NetherFortGen.h
T

46 lines
860 B
C++
Raw Normal View History

2014-03-28 16:42:32 +01:00
// NetherFortGen.h
// Declares the cNetherFortGen class representing the nether fortress generator
#pragma once
#include "ComposableGenerator.h"
2014-05-07 22:34:06 +02:00
#include "PrefabPiecePool.h"
#include "GridStructGen.h"
2014-03-28 16:42:32 +01:00
class cNetherFortGen :
2014-05-07 22:34:06 +02:00
public cGridStructGen
2014-03-28 16:42:32 +01:00
{
2014-05-07 22:34:06 +02:00
typedef cGridStructGen super;
2014-03-28 16:42:32 +01:00
public:
cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth);
2014-03-28 16:42:32 +01:00
protected:
friend class cNetherFortPerfTest; // fwd: NetherFortGen.cpp
2014-03-28 16:42:32 +01:00
class cNetherFort; // fwd: NetherFortGen.cpp
/** Maximum depth of the piece-generator tree */
int m_MaxDepth;
2014-05-07 22:34:06 +02:00
/** The pool of pieces to use for generating. Static, so that it's shared by multiple generators. */
static cPrefabPiecePool m_PiecePool;
2014-03-28 16:42:32 +01:00
2014-05-07 22:34:06 +02:00
// cGridStructGen overrides:
virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override;
2014-03-28 16:42:32 +01:00
} ;