diff options
author | daniel0916 <theschokolps@gmail.com> | 2014-04-12 14:58:46 +0200 |
---|---|---|
committer | daniel0916 <theschokolps@gmail.com> | 2014-04-12 14:58:46 +0200 |
commit | e6e702e7fdbc8b7475d3dbecc0f81a08304997ae (patch) | |
tree | 1764949b84b4ae7a9da2330a90513c301d707820 /src/UI/Window.h | |
parent | Modified comment (diff) | |
download | cuberite-e6e702e7fdbc8b7475d3dbecc0f81a08304997ae.tar cuberite-e6e702e7fdbc8b7475d3dbecc0f81a08304997ae.tar.gz cuberite-e6e702e7fdbc8b7475d3dbecc0f81a08304997ae.tar.bz2 cuberite-e6e702e7fdbc8b7475d3dbecc0f81a08304997ae.tar.lz cuberite-e6e702e7fdbc8b7475d3dbecc0f81a08304997ae.tar.xz cuberite-e6e702e7fdbc8b7475d3dbecc0f81a08304997ae.tar.zst cuberite-e6e702e7fdbc8b7475d3dbecc0f81a08304997ae.zip |
Diffstat (limited to 'src/UI/Window.h')
-rw-r--r-- | src/UI/Window.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/UI/Window.h b/src/UI/Window.h index cdaec5aaa..52ab6c3ae 100644 --- a/src/UI/Window.h +++ b/src/UI/Window.h @@ -136,11 +136,11 @@ public: void SetWindowTitle(const AString & a_WindowTitle ) { m_WindowTitle = a_WindowTitle; } /// Sends the UpdateWindowProperty (0x69) packet to all clients of the window - void SetProperty(int a_Property, int a_Value); + virtual void SetProperty(int a_Property, int a_Value); /// Sends the UpdateWindowPropert(0x69) packet to the specified player - void SetProperty(int a_Property, int a_Value, cPlayer & a_Player); - + virtual void SetProperty(int a_Property, int a_Value, cPlayer & a_Player); + // tolua_end void OwnerDestroyed(void); @@ -165,7 +165,7 @@ public: /// Used by cSlotAreas to send individual slots to clients, a_RelativeSlotNum is the slot number relative to a_SlotArea void SendSlot(cPlayer & a_Player, cSlotArea * a_SlotArea, int a_RelativeSlotNum); - + protected: cSlotAreas m_SlotAreas; @@ -237,6 +237,18 @@ class cEnchantingWindow : typedef cWindow super; public: cEnchantingWindow(int a_BlockX, int a_BlockY, int a_BlockZ); + virtual void SetProperty(int a_Property, int a_Value, cPlayer & a_Player) override; + virtual void SetProperty(int a_Property, int a_Value) override; + + /** Return the Value of a Property */ + int GetPropertyValue(int a_Property); + + /** Set the Position Values to the Position of the Enchantment Table */ + void GetBlockPos(int & a_PosX, int & a_PosY, int & a_PosZ); + +protected: + int m_PropertyValue0, m_PropertyValue1, m_PropertyValue2; + int m_BlockX, m_BlockY, m_BlockZ; }; |