summaryrefslogtreecommitdiffstats
path: root/src/UI/Window.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-06 21:46:50 +0200
committerMattes D <github@xoft.cz>2014-05-06 21:46:50 +0200
commit66c5c81e02dd9350542e1dd65b8e33c2f45a011b (patch)
treee719f55d50354e881c8ace1ca83516596519abaf /src/UI/Window.h
parentMerge pull request #927 from mc-server/fixes (diff)
parentRename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count() (diff)
downloadcuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.gz
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.bz2
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.lz
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.xz
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.zst
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.zip
Diffstat (limited to 'src/UI/Window.h')
-rw-r--r--src/UI/Window.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/UI/Window.h b/src/UI/Window.h
index 1ca67bfd8..542dccb88 100644
--- a/src/UI/Window.h
+++ b/src/UI/Window.h
@@ -24,6 +24,7 @@ class cEnderChestEntity;
class cFurnaceEntity;
class cHopperEntity;
class cSlotArea;
+class cSlotAreaAnvil;
class cWorld;
typedef std::list<cPlayer *> cPlayerList;
@@ -231,6 +232,32 @@ public:
+class cAnvilWindow :
+ public cWindow
+{
+ typedef cWindow super;
+public:
+ cAnvilWindow(int a_BlockX, int a_BlockY, int a_BlockZ);
+
+ /** Gets the repaired item name. */
+ AString GetRepairedItemName(void) const { return m_RepairedItemName; }
+
+ /** Set the repaired item name. */
+ void SetRepairedItemName(const AString & a_Name, cPlayer * a_Player);
+
+ /** Gets the Position from the Anvil */
+ void GetBlockPos(int & a_PosX, int & a_PosY, int & a_PosZ);
+
+protected:
+ cSlotAreaAnvil * m_AnvilSlotArea;
+ AString m_RepairedItemName;
+ int m_BlockX, m_BlockY, m_BlockZ;
+} ;
+
+
+
+
+
class cEnchantingWindow :
public cWindow
{
@@ -243,7 +270,7 @@ public:
/** Return the Value of a Property */
int GetPropertyValue(int a_Property);
- /** Set the Position Values to the Position of the Enchantment Table */
+ /** Get the Position from the Enchantment Table */
void GetBlockPos(int & a_PosX, int & a_PosY, int & a_PosZ);
cSlotArea * m_SlotArea;