summaryrefslogtreecommitdiffstats
path: root/source/cWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cWindow.h')
-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: