Cuberite
A lightweight, fast and extensible game server for Minecraft
src
UI
InventoryWindow.h
Go to the documentation of this file.
1
2
// InventoryWindow.h
3
4
// Representing the UI window for the player inventory
5
6
7
8
9
10
#pragma once
11
12
#include "
Window.h
"
13
14
15
16
17
18
class
cInventoryWindow
:
19
public
cWindow
20
{
21
using
Super
=
cWindow
;
22
23
public
:
24
25
cInventoryWindow
(
cPlayer
& a_Player);
26
27
virtual
void
DistributeStack
(
cItem
& a_ItemStack,
int
a_Slot,
cPlayer
& a_Player,
cSlotArea
* a_ClickedArea,
bool
a_ShouldApply)
override
;
28
30
void
LoadRecipe
(
cPlayer
& a_Player,
UInt32
a_RecipeId);
31
protected
:
32
cPlayer
&
m_Player
;
33
};
UInt32
unsigned int UInt32
Definition:
Globals.h:157
Window.h
cPlayer
Definition:
Player.h:29
cItem
Definition:
Item.h:37
cInventoryWindow
Definition:
InventoryWindow.h:20
cInventoryWindow::cInventoryWindow
cInventoryWindow(cPlayer &a_Player)
Definition:
InventoryWindow.cpp:14
cInventoryWindow::LoadRecipe
void LoadRecipe(cPlayer &a_Player, UInt32 a_RecipeId)
Loads the given Recipe into the crafting grid.
Definition:
InventoryWindow.cpp:76
cInventoryWindow::DistributeStack
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...
Definition:
InventoryWindow.cpp:29
cInventoryWindow::m_Player
cPlayer & m_Player
Definition:
InventoryWindow.h:32
cSlotArea
Definition:
SlotArea.h:34
cWindow
Represents a UI window.
Definition:
Window.h:54
cWindow::cWindow
cWindow(WindowType a_WindowType, const AString &a_WindowTitle)
Definition:
Window.cpp:30
Generated on Fri Oct 25 2024 05:01:18 for Cuberite by
1.9.1