summaryrefslogblamecommitdiffstats
path: root/src/Generating/POCPieceGenerator.h
blob: de3114ce01e1731fb738191fbdda053a328cd806 (plain) (tree)





















































                                                                                                                                

// POCPieceGenerator.h

// Declares the cPOCPieceGenerator class representing a Proof-Of_Concept structure generator using the cPieceGenerator technique
// The generator generates a maze of rooms at {0, 100, 0}





#pragma once

#include "PieceGenerator.h"
#include "ComposableGenerator.h"





class cPOCPieceGenerator :
	public cFinishGen,
	protected cPiecePool
{
public:
	cPOCPieceGenerator(int a_Seed);
	~cPOCPieceGenerator();
	
protected:
	int m_Seed;
	
	/** The pieces from which the generated structure is built. */
	cPieces m_AvailPieces;
	
	/** The placed pieces of the generated structure. */
	cPlacedPieces m_Pieces;
	
	/** Bounds of the complete structure, to save on processing outside chunks. */
	cCuboid m_Bounds;


	// cFinishGen overrides:
	virtual void GenFinish(cChunkDesc & a_ChunkDesc) override;
	
	// cPiecePool overrides:
	virtual cPieces GetPiecesWithConnector(int a_ConnectorType) override;
	virtual cPieces GetStartingPieces(void) override;
	virtual void PiecePlaced(const cPiece & a_Piece) override;
	virtual void Reset(void) override;
} ;