1
0

cChestEntity: Renamed a member to avoid confusion.

This commit is contained in:
madmaxoft 2014-07-12 23:30:34 +02:00
parent 9ab0f259c7
commit c4f1284d9c
2 changed files with 9 additions and 8 deletions

View File

@ -13,7 +13,7 @@
cChestEntity::cChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World, BLOCKTYPE a_Type) : 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), super(a_Type, a_BlockX, a_BlockY, a_BlockZ, ContentsWidth, ContentsHeight, a_World),
m_ActivePlayers(0) m_NumActivePlayers(0)
{ {
cBlockEntityWindowOwner::SetBlockEntity(this); cBlockEntityWindowOwner::SetBlockEntity(this);
} }

View File

@ -34,7 +34,7 @@ public:
// tolua_end // 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); cChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World, BLOCKTYPE a_Type);
virtual ~cChestEntity(); virtual ~cChestEntity();
@ -48,19 +48,20 @@ public:
virtual void SendTo(cClientHandle & a_Client) override; virtual void SendTo(cClientHandle & a_Client) override;
virtual void UsedBy(cPlayer * a_Player) 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); void OpenNewWindow(void);
/** Gets the number of players who currently have this chest open */ /** 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 */ /** Sets the number of players who currently have this chest open */
void SetNumberOfPlayers(int a_Amount) { m_ActivePlayers = a_Amount; } void SetNumberOfPlayers(int a_NumActivePlayers) { m_NumActivePlayers = a_NumActivePlayers; }
private: private:
/** Holds the number of players who currently have this chest open */ /** Number of players who currently have this chest open */
int m_ActivePlayers; int m_NumActivePlayers;
} ; // tolua_export } ; // tolua_export