diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-20 22:10:46 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-20 22:10:46 +0200 |
commit | fdf83870925d30560ec7f853fdc19ec6c9e29155 (patch) | |
tree | db4a9743f510da5409b91482be5d174c028ac794 /source/UI/cWindow.h | |
parent | Refactored windows. (diff) | |
download | cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.gz cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.bz2 cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.lz cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.xz cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.zst cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.zip |
Diffstat (limited to 'source/UI/cWindow.h')
-rw-r--r-- | source/UI/cWindow.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/UI/cWindow.h b/source/UI/cWindow.h index 231e4fdc0..980a1e711 100644 --- a/source/UI/cWindow.h +++ b/source/UI/cWindow.h @@ -93,6 +93,12 @@ public: /// Calls the callback safely for each client that has this window open; returns true if all clients have been enumerated bool ForEachClient(cItemCallback<cClientHandle> & a_Callback); + /** Called on shift-clicking to distribute the stack into other areas; Modifies a_ItemStack as it is distributed! + if a_ShouldApply is true, the changes are written into the slots; + if a_ShouldApply is false, only a_ItemStack is modified to reflect the number of fits (for fit-testing purposes) + */ + void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, cSlotArea * a_ExcludeArea, bool a_ShouldApply); + protected: cSlotAreas m_SlotAreas; |