From 0bacda32692729e4b9743f91d92cd329e198d73a Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sat, 21 Oct 2017 17:56:09 +0100 Subject: Implement horse inventory (#4053) * Implement horse inventory * Fix sign conversions * Add API doc for ItemCategory::IsHorseArmor * Improve HandleOpenHorseInventory comment and style fixes. --- src/UI/HorseWindow.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/UI/HorseWindow.h (limited to 'src/UI/HorseWindow.h') diff --git a/src/UI/HorseWindow.h b/src/UI/HorseWindow.h new file mode 100644 index 000000000..77bc2d627 --- /dev/null +++ b/src/UI/HorseWindow.h @@ -0,0 +1,34 @@ + +// HorseWindow.h + +// Representing the UI window for a horse entity + +#pragma once + +#include "Window.h" + +class cHorse; + + + + + +class cHorseWindow : + public cWindow +{ + using Super = cWindow; +public: + cHorseWindow(cHorse & a_Horse); + + virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) override; + + /** Returns the horse's entity ID. */ + UInt32 GetHorseID() const; + +private: + cHorse & m_Horse; +}; + + + + -- cgit v1.2.3