summaryrefslogtreecommitdiffstats
path: root/src/Generating/PieceGenerator.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-17 21:54:04 +0200
committermadmaxoft <github@xoft.cz>2014-05-17 21:54:04 +0200
commit7004043c6164c6b22346f94489cb823f9495738f (patch)
tree6aada4d3af59dbcb414b256b4d712cf9f203bf8a /src/Generating/PieceGenerator.h
parentUpdated PlainsVillage prefabs to the latest Gallery contents. (diff)
downloadcuberite-7004043c6164c6b22346f94489cb823f9495738f.tar
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.gz
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.bz2
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.lz
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.xz
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.zst
cuberite-7004043c6164c6b22346f94489cb823f9495738f.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/PieceGenerator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Generating/PieceGenerator.h b/src/Generating/PieceGenerator.h
index 16bec3bb4..56ce996d2 100644
--- a/src/Generating/PieceGenerator.h
+++ b/src/Generating/PieceGenerator.h
@@ -144,6 +144,13 @@ public:
const cCuboid & GetHitBox (void) const { return m_HitBox; }
int GetDepth (void) const { return m_Depth; }
+ /** Returns the coords as a modifiable object. */
+ Vector3i & GetCoords(void) { return m_Coords; }
+
+ /** Returns the connector at the specified index, rotated in the actual placement.
+ Undefined behavior if a_Index is out of range. */
+ cPiece::cConnector GetRotatedConnector(size_t a_Index) const;
+
protected:
const cPlacedPiece * m_Parent;
const cPiece * m_Piece;