diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-03 23:42:26 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-05 17:34:29 +0200 |
commit | 7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f (patch) | |
tree | 22b1673c30752560887116b3623db0bd17896a5e /src/UI/Window.h | |
parent | Add MC|ItemName plugin message. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/UI/Window.h | 12 |
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; |