summaryrefslogtreecommitdiffstats
path: root/src/Generating/PrefabPiecePool.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-07 22:34:06 +0200
committermadmaxoft <github@xoft.cz>2014-05-07 22:34:06 +0200
commit564261cfd9e385dfe6331c0585cae3b46989dd17 (patch)
tree33562e8da096a6f7d8ed28911a9179181d1a738b /src/Generating/PrefabPiecePool.h
parentInitial cPrefabPiecePool refactoring. (diff)
downloadcuberite-564261cfd9e385dfe6331c0585cae3b46989dd17.tar
cuberite-564261cfd9e385dfe6331c0585cae3b46989dd17.tar.gz
cuberite-564261cfd9e385dfe6331c0585cae3b46989dd17.tar.bz2
cuberite-564261cfd9e385dfe6331c0585cae3b46989dd17.tar.lz
cuberite-564261cfd9e385dfe6331c0585cae3b46989dd17.tar.xz
cuberite-564261cfd9e385dfe6331c0585cae3b46989dd17.tar.zst
cuberite-564261cfd9e385dfe6331c0585cae3b46989dd17.zip
Diffstat (limited to 'src/Generating/PrefabPiecePool.h')
-rw-r--r--src/Generating/PrefabPiecePool.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Generating/PrefabPiecePool.h b/src/Generating/PrefabPiecePool.h
index 2a7993063..c6a5ad360 100644
--- a/src/Generating/PrefabPiecePool.h
+++ b/src/Generating/PrefabPiecePool.h
@@ -20,11 +20,15 @@ class cPrefabPiecePool :
public cPiecePool
{
public:
+ /** Creates an empty instance. Prefabs can be added by calling AddPieceDefs() and AddStartingPieceDefs(). */
+ cPrefabPiecePool(void);
+
/** Creates a piece pool with prefabs from the specified definitions.
If both a_PieceDefs and a_StartingPieceDefs are given, only the a_StartingPieceDefs are used as starting
pieces for the pool, and they do not participate in the generation any further.
If only a_PieceDefs is given, any such piece can be chosen as a starting piece, and all the pieces are used
- for generating. */
+ for generating.
+ More pieces can be added to the instance afterwards by calling AddPieceDefs() and AddStartingPieceDefs(). */
cPrefabPiecePool(
const cPrefab::sDef * a_PieceDefs, size_t a_NumPieceDefs,
const cPrefab::sDef * a_StartingPieceDefs, size_t a_NumStartingPieceDefs
@@ -35,7 +39,7 @@ public:
May be called multiple times with different PieceDefs, will add all such pieces. */
void AddPieceDefs(const cPrefab::sDef * a_PieceDefs, size_t a_NumPieceDefs);
- /** Adds pieces from the specified definitions into m_StartingPieces. Doesn't add to
+ /** Adds pieces from the specified definitions into m_StartingPieces. Doesn't add them to
the m_PiecesByConnector map.
May be called multiple times with different PieceDefs, will add all such pieces. */
void AddStartingPieceDefs(const cPrefab::sDef * a_StartingPieceDefs, size_t a_NumStartingPieceDefs);