summaryrefslogtreecommitdiffstats
path: root/source/cSurvivalInventory.h
blob: 3ad385fcf7a47900cef33c3b9717393a3b74c748 (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
39
40
41
42
43
44
45
46
47
48

#pragma once

#include "cInventory.h"





class cSurvivalInventory										//tolua_export
	: public cInventory
{														//tolua_export

	enum
	{
		SLOT_CRAFTING_RESULT  = 0,
		SLOT_CRAFTING_MIN     = 1,
		SLOT_CRAFTING_MAX     = 4,
		SLOT_ARMOR_MIN        = 5,
		SLOT_ARMOR_HELMET     = 5,
		SLOT_ARMOR_CHESTPLATE = 6,
		SLOT_ARMOR_LEGGINGS   = 7,
		SLOT_ARMOR_BOOTS      = 8,
		SLOT_ARMOR_MAX        = 8,
		SLOT_INVENTORY_MIN    = 9,
		SLOT_INVENTORY_MAX    = 35,
		SLOT_HOTBAR_MIN       = 36,
		SLOT_HOTBAR_MAX       = 44,
	} ;
	
	void ShiftClickedCraftingResult(short a_SlotNum);
	void ShiftClickedCraftingGrid  (short a_SlotNum);
	void ShiftClickedArmor         (short a_Slot);
	void ShiftClickedHotbar        (short a_Slot);
	void ShiftClickedInventory     (short a_Slot);
	
public:
	cSurvivalInventory(cPlayer* a_Owner);
	~cSurvivalInventory();

	virtual void Clicked(short a_SlotNum, bool a_IsRightClick, bool a_IsShiftPressed, const cItem & a_HeldItem) override;
	
	void ShiftClicked(short a_SlotNum);
};	//tolua_export