2012-08-14 10:18:24 -04:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cWindow.h"
|
|
|
|
|
2012-08-14 10:18:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// fwd:
|
2012-06-14 09:06:06 -04:00
|
|
|
class cWindowOwner;
|
2012-08-14 10:18:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
class cCraftingWindow : public cWindow
|
|
|
|
{
|
|
|
|
public:
|
2012-08-14 10:18:24 -04:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
|