summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-25 08:11:49 +0200
committerMattes D <github@xoft.cz>2014-04-25 08:11:49 +0200
commita40108da90f8d0e4fff4027e45176cbe637106ad (patch)
treeeacd3dbb2f969e3cedfecaa16b0f23d6c59f5fb5 /src/UI/SlotArea.h
parentMerge pull request #929 from archshift/master (diff)
parentAdd commit what the code is doing. (diff)
downloadcuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.gz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.bz2
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.lz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.xz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.zst
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.zip
Diffstat (limited to 'src/UI/SlotArea.h')
-rw-r--r--src/UI/SlotArea.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h
index bab1098bb..254722822 100644
--- a/src/UI/SlotArea.h
+++ b/src/UI/SlotArea.h
@@ -145,8 +145,13 @@ public:
{
}
- // Distributing the stack is allowed only for compatible items (helmets into helmet slot etc.)
+ /** Distributing the stack is allowed only for compatible items (helmets into helmet slot etc.) */
virtual void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, bool a_ShouldApply, bool a_KeepEmptySlots) override;
+
+ /** Called when a player clicks in the window. Parameters taken from the click packet. */
+ virtual void Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem) override;
+
+ bool CanPlaceInSlot(int a_SlotNum, const cItem & a_Item);
} ;