summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-12 23:30:34 +0200
committermadmaxoft <github@xoft.cz>2014-07-12 23:30:34 +0200
commitc4f1284d9cca12f77184b7a0b9521e87f6533974 (patch)
tree00e7689cfbb07b06744a2fc378a3ad8fd4a5e3a4 /src/BlockEntities
parentFixed alignment. (diff)
downloadcuberite-c4f1284d9cca12f77184b7a0b9521e87f6533974.tar
cuberite-c4f1284d9cca12f77184b7a0b9521e87f6533974.tar.gz
cuberite-c4f1284d9cca12f77184b7a0b9521e87f6533974.tar.bz2
cuberite-c4f1284d9cca12f77184b7a0b9521e87f6533974.tar.lz
cuberite-c4f1284d9cca12f77184b7a0b9521e87f6533974.tar.xz
cuberite-c4f1284d9cca12f77184b7a0b9521e87f6533974.tar.zst
cuberite-c4f1284d9cca12f77184b7a0b9521e87f6533974.zip
Diffstat (limited to 'src/BlockEntities')
-rw-r--r--src/BlockEntities/ChestEntity.cpp2
-rw-r--r--src/BlockEntities/ChestEntity.h15
2 files changed, 9 insertions, 8 deletions
diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp
index 8626f3cad..ca164464c 100644
--- a/src/BlockEntities/ChestEntity.cpp
+++ b/src/BlockEntities/ChestEntity.cpp
@@ -13,7 +13,7 @@
cChestEntity::cChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World, BLOCKTYPE a_Type) :
super(a_Type, a_BlockX, a_BlockY, a_BlockZ, ContentsWidth, ContentsHeight, a_World),
- m_ActivePlayers(0)
+ m_NumActivePlayers(0)
{
cBlockEntityWindowOwner::SetBlockEntity(this);
}
diff --git a/src/BlockEntities/ChestEntity.h b/src/BlockEntities/ChestEntity.h
index 42cf7657c..310618504 100644
--- a/src/BlockEntities/ChestEntity.h
+++ b/src/BlockEntities/ChestEntity.h
@@ -34,7 +34,7 @@ public:
// tolua_end
- /// Constructor used for normal operation
+ /** Constructor used for normal operation */
cChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World, BLOCKTYPE a_Type);
virtual ~cChestEntity();
@@ -48,19 +48,20 @@ public:
virtual void SendTo(cClientHandle & a_Client) override;
virtual void UsedBy(cPlayer * a_Player) override;
- /// Opens a new chest window for this chest. Scans for neighbors to open a double chest window, if appropriate.
+ /** Opens a new chest window for this chest.
+ Scans for neighbors to open a double chest window, if appropriate. */
void OpenNewWindow(void);
/** Gets the number of players who currently have this chest open */
- int GetNumberOfPlayers(void) const { return m_ActivePlayers; }
+ int GetNumberOfPlayers(void) const { return m_NumActivePlayers; }
- /** Gets the number of players who currently have this chest open */
- void SetNumberOfPlayers(int a_Amount) { m_ActivePlayers = a_Amount; }
+ /** Sets the number of players who currently have this chest open */
+ void SetNumberOfPlayers(int a_NumActivePlayers) { m_NumActivePlayers = a_NumActivePlayers; }
private:
- /** Holds the number of players who currently have this chest open */
- int m_ActivePlayers;
+ /** Number of players who currently have this chest open */
+ int m_NumActivePlayers;
} ; // tolua_export