diff options
Diffstat (limited to 'src/UI/SlotArea.h')
-rw-r--r-- | src/UI/SlotArea.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h index be21cdada..4463cb315 100644 --- a/src/UI/SlotArea.h +++ b/src/UI/SlotArea.h @@ -14,6 +14,7 @@ +class cHorse; class cWindow; class cPlayer; class cBeaconEntity; @@ -520,3 +521,27 @@ protected: + +/** Slot area holding horse saddle and armor. */ +class cSlotAreaHorse: + public cSlotArea +{ +public: + enum + { + SaddleSlot, + ArmorSlot + }; + + cSlotAreaHorse(cHorse & a_Horse, cWindow & a_ParentWindow); + virtual void Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem) override; + virtual const cItem * GetSlot(int a_SlotNum, cPlayer & a_Player) const override; + virtual void SetSlot(int a_SlotNum, cPlayer & a_Player, const cItem & a_Item) override; + virtual void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, bool a_ShouldApply, bool a_KeepEmptySlots, bool a_BackFill) override; +private: + cHorse & m_Horse; +}; + + + + |