summaryrefslogblamecommitdiffstats
path: root/src/Generating/NetherFortGen.h
blob: 9b31aa0e28e6631c8de34971c0207e4e6b971fea (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                               

                            





                      
                             
 

                                     
       
                                                                                    
        
          
                                                                    
                                                     


                                                        
        

                                                                                                            
        
 
                                    
                                                                                                               




   

// 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;
} ;