blob: b353d2e169b697eba6d55ec87771024f70e479e0 (
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 /*override*/s:
virtual void GenFinish(cChunkDesc & a_ChunkDesc) /*override*/;
// cPiecePool /*override*/s:
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*/;
} ;
|