Cuberite
A lightweight, fast and extensible game server for Minecraft
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:
30 };
31 
32 
33 
34 
unsigned int UInt32
Definition: Globals.h:157
Definition: Player.h:29
Definition: Item.h:37
Definition: Horse.h:14
cHorse & m_Horse
Definition: HorseWindow.h:29
UInt32 GetHorseID() const
Returns the horse's entity ID.
Definition: HorseWindow.cpp:54
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(cHorse &a_Horse)
Definition: HorseWindow.cpp:15
Represents a UI window.
Definition: Window.h:54
cWindow(WindowType a_WindowType, const AString &a_WindowTitle)
Definition: Window.cpp:30