summaryrefslogtreecommitdiffstats
path: root/src/UI/Window.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-20 13:34:38 +0200
committerMattes D <github@xoft.cz>2014-04-20 13:34:38 +0200
commitf99bdfb457bc1e497dd74932611a91add72b4f27 (patch)
treec5f0b53b4208b96089788719dfe2a1115ca5804d /src/UI/Window.cpp
parentAPIDump: Added a ChunkStay article. (diff)
parentFixed Code (diff)
downloadcuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.gz
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.bz2
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.lz
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.xz
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.zst
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.zip
Diffstat (limited to 'src/UI/Window.cpp')
-rw-r--r--src/UI/Window.cpp60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp
index aae7b99a3..0a78578fc 100644
--- a/src/UI/Window.cpp
+++ b/src/UI/Window.cpp
@@ -805,6 +805,66 @@ cCraftingWindow::cCraftingWindow(int a_BlockX, int a_BlockY, int a_BlockZ) :
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// cEnchantingWindow:
+
+cEnchantingWindow::cEnchantingWindow(int a_BlockX, int a_BlockY, int a_BlockZ) :
+ cWindow(wtEnchantment, "Enchant"),
+ m_BlockX(a_BlockX),
+ m_BlockY(a_BlockY),
+ m_BlockZ(a_BlockZ)
+{
+ m_SlotAreas.push_back(new cSlotAreaEnchanting(*this));
+ m_SlotAreas.push_back(new cSlotAreaInventory(*this));
+ m_SlotAreas.push_back(new cSlotAreaHotBar(*this));
+}
+
+
+
+
+
+void cEnchantingWindow::SetProperty(int a_Property, int a_Value)
+{
+ m_PropertyValue[a_Property] = a_Value;
+
+ super::SetProperty(a_Property, a_Value);
+}
+
+
+
+
+
+void cEnchantingWindow::SetProperty(int a_Property, int a_Value, cPlayer & a_Player)
+{
+ m_PropertyValue[a_Property] = a_Value;
+
+ super::SetProperty(a_Property, a_Value, a_Player);
+}
+
+
+
+
+
+int cEnchantingWindow::GetPropertyValue(int a_Property)
+{
+ return m_PropertyValue[a_Property];
+}
+
+
+
+
+
+void cEnchantingWindow::GetBlockPos(int & a_PosX, int & a_PosY, int & a_PosZ)
+{
+ a_PosX = m_BlockX;
+ a_PosY = m_BlockY;
+ a_PosZ = m_BlockZ;
+}
+
+
+
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cChestWindow:
cChestWindow::cChestWindow(cChestEntity * a_Chest) :