summaryrefslogtreecommitdiffstats
path: root/source/cCraftingWindow.h
blob: 70a731a65df0418fa4711abe9bccd4369f9223b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

#pragma once

#include "cWindow.h"




// fwd:
class cWindowOwner;





class cCraftingWindow : public cWindow
{
public:
	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);
};