summaryrefslogtreecommitdiffstats
path: root/source/cWindow.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:54:57 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:54:57 +0200
commit18b04ab93f31e4701351dc35f847f2763d75c5e0 (patch)
tree577ee0332b3ae8778443dc6af4ee0f24c7ca1011 /source/cWindow.h
parentUpdated Bindings to match the new armor categories and torch metas (diff)
downloadcuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.gz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.bz2
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.lz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.xz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.zst
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.zip
Diffstat (limited to '')
-rw-r--r--source/cWindow.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/cWindow.h b/source/cWindow.h
index 9d62dc43a..303c9e503 100644
--- a/source/cWindow.h
+++ b/source/cWindow.h
@@ -78,7 +78,13 @@ public:
const AString & GetWindowTitle() const { return m_WindowTitle; }
void SetWindowTitle( const std::string & a_WindowTitle ) { m_WindowTitle = a_WindowTitle; }
- void OwnerDestroyed();
+ void OwnerDestroyed(void);
+
+ /// Calls the callback safely for each player that has this window open; returns true if all players have been enumerated
+ bool ForEachPlayer(cItemCallback<cPlayer> & a_Callback);
+
+ /// 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);
private: