summaryrefslogtreecommitdiffstats
path: root/source/cCraftingWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cCraftingWindow.h')
-rw-r--r--source/cCraftingWindow.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/source/cCraftingWindow.h b/source/cCraftingWindow.h
index 16fe3bb23..70a731a65 100644
--- a/source/cCraftingWindow.h
+++ b/source/cCraftingWindow.h
@@ -1,13 +1,38 @@
+
#pragma once
#include "cWindow.h"
+
+
+
+// fwd:
class cWindowOwner;
+
+
+
+
+
class cCraftingWindow : public cWindow
{
public:
- cCraftingWindow( cWindowOwner* a_Owner, bool a_bInventoryVisible );
+ enum
+ {
+ SLOT_CRAFTING_RESULT = 0,
+ SLOT_CRAFTING_MIN = 1,
+ SLOT_CRAFTING_MAX = 9,
+ } ;
+
+ cCraftingWindow(cWindowOwner * a_Owner, bool a_bInventoryVisible);
+
+ virtual void Clicked(cPacket_WindowClick * a_ClickPacket, cPlayer & a_Player);
+ virtual void Close(cPlayer & a_Player);
+
+ void ShiftClicked(cPacket_WindowClick * a_ClickPacket, cPlayer & a_Player);
+ void ShiftClickedCraftingResult(short a_Slot, cPlayer & a_Player);
+ void ShiftClickedCraftingGrid (short a_Slot, cPlayer & a_Player);
+};
+
+
+
- virtual void Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player );
- virtual void Close( cPlayer & a_Player );
-}; \ No newline at end of file