[Gcblue-commits] gcb_wx/include/network tcMultiplayerInterface.h,1.6,1.7
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-04-09 03:21:23
|
Update of /cvsroot/gcblue/gcb_wx/include/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12869/include/network Modified Files: tcMultiplayerInterface.h Log Message: multiplayer related changes Index: tcMultiplayerInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcMultiplayerInterface.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** tcMultiplayerInterface.h 7 Apr 2004 00:41:07 -0000 1.6 --- tcMultiplayerInterface.h 9 Apr 2004 03:08:07 -0000 1.7 *************** *** 36,39 **** --- 36,41 ---- #define END_NAMESPACE } + class wxEvtHandler; + BEGIN_NAMESPACE(network) *************** *** 41,45 **** class tcMessageHandler; - class tcPlayerStatus { --- 43,46 ---- *************** *** 74,77 **** --- 75,79 ---- int GetConnectionId(unsigned connectionIdx); std::string GetConnectionStatus(unsigned connectionIdx); + wxEvtHandler* GetEvtHandler() const; std::string GetName() const; unsigned GetNumConnections(); *************** *** 90,93 **** --- 92,96 ---- void SendTestUDP(int destination, std::string message); void SetChatProtocol(int code); + void SetEvtHandler(wxEvtHandler *eh); void SetName(const std::string& name); void Update(); *************** *** 101,104 **** --- 104,108 ---- bool tcpChat; ///< true to use TCP for chat protocol, otherwise UDP tcPlayerStatus errorPlayerStatus; ///< status to return if player not found + wxEvtHandler* evtHandler; ///< wxWidgets event handler for posting messages to application void ClearMessageMap(); |