2014-03-28 11:42:32 -04:00
|
|
|
|
|
|
|
// NetherFortGen.h
|
|
|
|
|
|
|
|
// Declares the cNetherFortGen class representing the nether fortress generator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ComposableGenerator.h"
|
2014-05-07 16:34:06 -04:00
|
|
|
#include "PrefabPiecePool.h"
|
|
|
|
#include "GridStructGen.h"
|
2014-03-28 11:42:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cNetherFortGen :
|
2014-05-07 16:34:06 -04:00
|
|
|
public cGridStructGen
|
2014-03-28 11:42:32 -04:00
|
|
|
{
|
2014-05-07 16:34:06 -04:00
|
|
|
typedef cGridStructGen super;
|
|
|
|
|
2014-03-28 11:42:32 -04:00
|
|
|
public:
|
2014-06-16 10:12:50 -04:00
|
|
|
cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth);
|
2014-03-28 11:42:32 -04:00
|
|
|
|
|
|
|
protected:
|
2014-04-18 08:35:33 -04:00
|
|
|
friend class cNetherFortPerfTest; // fwd: NetherFortGen.cpp
|
2014-03-28 11:42:32 -04:00
|
|
|
class cNetherFort; // fwd: NetherFortGen.cpp
|
|
|
|
|
|
|
|
/** Maximum depth of the piece-generator tree */
|
|
|
|
int m_MaxDepth;
|
|
|
|
|
2014-05-07 16:34:06 -04: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 11:42:32 -04:00
|
|
|
|
|
|
|
|
2014-05-07 16:34:06 -04:00
|
|
|
// cGridStructGen overrides:
|
2014-06-16 10:12:50 -04:00
|
|
|
virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override;
|
2014-03-28 11:42:32 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|