diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-11 20:33:26 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-11 20:33:26 +0100 |
commit | 80d7c88e007c6dd3af629aad7a01fbf911a00d67 (patch) | |
tree | f60467bca973ef34b355b53e2d0dbb5554f71ad7 /src/Generating/POCPieceGenerator.h | |
parent | Merge branch 'master' into Werror (diff) | |
parent | Merge pull request #791 from mc-server/PieceGenerator (diff) | |
download | cuberite-80d7c88e007c6dd3af629aad7a01fbf911a00d67.tar cuberite-80d7c88e007c6dd3af629aad7a01fbf911a00d67.tar.gz cuberite-80d7c88e007c6dd3af629aad7a01fbf911a00d67.tar.bz2 cuberite-80d7c88e007c6dd3af629aad7a01fbf911a00d67.tar.lz cuberite-80d7c88e007c6dd3af629aad7a01fbf911a00d67.tar.xz cuberite-80d7c88e007c6dd3af629aad7a01fbf911a00d67.tar.zst cuberite-80d7c88e007c6dd3af629aad7a01fbf911a00d67.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/POCPieceGenerator.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/Generating/POCPieceGenerator.h b/src/Generating/POCPieceGenerator.h new file mode 100644 index 000000000..de3114ce0 --- /dev/null +++ b/src/Generating/POCPieceGenerator.h @@ -0,0 +1,54 @@ + +// 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; +} ; + + + + + |