From 18b04ab93f31e4701351dc35f847f2763d75c5e0 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 11 Aug 2012 19:54:57 +0000 Subject: Added partial shift+click handling to the survival inventory git-svn-id: http://mc-server.googlecode.com/svn/trunk@730 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWindow.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/cWindow.h') 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 & 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 & a_Callback); private: -- cgit v1.2.3