15 cWindow(wtEnchantment,
"Enchant"),
35 ASSERT(!
"a_Property is invalid");
51 ASSERT(!
"a_Property is invalid");
67 ASSERT(!
"a_Property is invalid");
Handles the main inventory of each player, excluding the armor and hotbar.
virtual void DistributeStack(cItem &a_ItemStack, int a_Slot, cPlayer &a_Player, cSlotArea *a_ClickedArea, bool a_ShouldApply) override
Called on shift-clicking to distribute the stack into other areas; Modifies a_ItemStack as it is dist...
void DistributeStackToAreas(cItem &a_ItemStack, cPlayer &a_Player, cSlotAreas &a_AreasInOrder, bool a_ShouldApply, bool a_BackFill)
Called from DistributeStack() to distribute the stack into a_AreasInOrder; Modifies a_ItemStack as it...
cEnchantingWindow(int a_BlockX, int a_BlockY, int a_BlockZ)
std::vector< cSlotArea * > cSlotAreas
virtual void SetProperty(short a_Property, short a_Value, cPlayer &a_Player) override
Updates a numerical property associated with the window.
short GetPropertyValue(short a_Property)
Return the value of a property.
virtual void SetProperty(short a_Property, short a_Value)
Updates a numerical property associated with the window.
Handles the hotbar of each player.
#define ARRAYCOUNT(X)
Evaluates to the number of elements in an array (compile-time!)