Cuberite
A lightweight, fast and extensible game server for Minecraft
src
UI
HorseWindow.h
Go to the documentation of this file.
1
2
// HorseWindow.h
3
4
// Representing the UI window for a horse entity
5
6
#pragma once
7
8
#include "
Window.h
"
9
10
class
cHorse
;
11
12
13
14
15
16
class
cHorseWindow
:
17
public
cWindow
18
{
19
using
Super
=
cWindow
;
20
public
:
21
cHorseWindow
(
cHorse
& a_Horse);
22
23
virtual
void
DistributeStack
(
cItem
& a_ItemStack,
int
a_Slot,
cPlayer
& a_Player,
cSlotArea
* a_ClickedArea,
bool
a_ShouldApply)
override
;
24
26
UInt32
GetHorseID
()
const
;
27
28
private
:
29
cHorse
&
m_Horse
;
30
};
31
32
33
34
UInt32
unsigned int UInt32
Definition:
Globals.h:157
Window.h
cPlayer
Definition:
Player.h:29
cItem
Definition:
Item.h:37
cHorse
Definition:
Horse.h:14
cHorseWindow
Definition:
HorseWindow.h:18
cHorseWindow::m_Horse
cHorse & m_Horse
Definition:
HorseWindow.h:29
cHorseWindow::GetHorseID
UInt32 GetHorseID() const
Returns the horse's entity ID.
Definition:
HorseWindow.cpp:54
cHorseWindow::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:
HorseWindow.cpp:28
cHorseWindow::cHorseWindow
cHorseWindow(cHorse &a_Horse)
Definition:
HorseWindow.cpp:15
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