summaryrefslogtreecommitdiffstats
path: root/src/Generating/NetherFortGen.h
blob: 9b31aa0e28e6631c8de34971c0207e4e6b971fea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

// NetherFortGen.h

// Declares the cNetherFortGen class representing the nether fortress generator





#pragma once

#include "ComposableGenerator.h"
#include "PrefabPiecePool.h"
#include "GridStructGen.h"





class cNetherFortGen :
	public cGridStructGen
{
	typedef cGridStructGen super;
	
public:
	cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth);
	
protected:
	friend class cNetherFortPerfTest;  // fwd: NetherFortGen.cpp
	class cNetherFort;  // fwd: NetherFortGen.cpp
	
	/** Maximum depth of the piece-generator tree */
	int m_MaxDepth;
	
	/** The pool of pieces to use for generating. Static, so that it's shared by multiple generators. */
	static cPrefabPiecePool m_PiecePool;
	

	// cGridStructGen overrides:
	virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override;
} ;