summaryrefslogtreecommitdiffstats
path: root/src/UI/Window.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-03 23:42:26 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-05 17:34:29 +0200
commit7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f (patch)
tree22b1673c30752560887116b3623db0bd17896a5e /src/UI/Window.h
parentAdd MC|ItemName plugin message. (diff)
downloadcuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.gz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.bz2
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.lz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.xz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.zst
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.zip
Diffstat (limited to 'src/UI/Window.h')
-rw-r--r--src/UI/Window.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/UI/Window.h b/src/UI/Window.h
index 8f6f80a41..c87d9b174 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;
@@ -236,16 +237,21 @@ class cAnvilWindow :
{
typedef cWindow super;
public:
- cAnvilWindow();
+ 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) { m_RepairedItemName = a_Name; }
+ void SetRepairedItemName(const AString & a_Name, cPlayer * a_Player);
+
+ /** Get the Position from the Enchantment Table */
+ 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;
} ;
@@ -264,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;