Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
typedef
cWindow
super
;
22
23
public
:
24
cInventoryWindow
(
cPlayer
& a_Player);
25
26
virtual
void
DistributeStack
(
cItem
& a_ItemStack,
int
a_Slot,
cPlayer
& a_Player,
cSlotArea
* a_ClickedArea,
bool
a_ShouldApply)
override
;
27
28
protected
:
29
cPlayer
&
m_Player
;
30
};
31
32
33
34
Window.h
cInventoryWindow::m_Player
cPlayer & m_Player
Definition:
InventoryWindow.h:29
cInventoryWindow::cInventoryWindow
cInventoryWindow(cPlayer &a_Player)
Definition:
InventoryWindow.cpp:14
cPlayer
Definition:
Player.h:27
cInventoryWindow::super
cWindow super
Definition:
InventoryWindow.h:21
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
Definition:
InventoryWindow.h:18
cWindow
Represents a UI window.
Definition:
Window.h:53
cSlotArea
Definition:
SlotArea.h:33
cItem
Definition:
Item.h:36
Generated on Mon Feb 24 2020 09:04:17 for Cuberite by
1.8.11