[Gcblue-commits] gcb_wx/include/network tcMultiplayerInterface.h,1.26,1.27 tcNetworkInterface.h,1.12
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-09-10 21:48:17
|
Update of /cvsroot/gcblue/gcb_wx/include/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1435/include/network Modified Files: tcMultiplayerInterface.h tcNetworkInterface.h tcUpdateMessageHandler.h Log Message: GCB 0.8.0 release Index: tcUpdateMessageHandler.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcUpdateMessageHandler.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** tcUpdateMessageHandler.h 26 Jul 2005 00:37:02 -0000 1.10 --- tcUpdateMessageHandler.h 10 Sep 2005 21:48:06 -0000 1.11 *************** *** 63,69 **** SCRIPT_COMMANDS = 9, ///< script commands to execute on server SCENARIO_INFO = 10, ///< info on scenario ! GOAL_STATUS = 11 ///< goal status for client }; static void AddCommandAck(tcGameObject* obj, tcCommandStream& stream); static void AddCommandUpdate(tcGameObject* obj, tcCommandStream& stream); --- 63,71 ---- SCRIPT_COMMANDS = 9, ///< script commands to execute on server SCENARIO_INFO = 10, ///< info on scenario ! GOAL_STATUS = 11, ///< goal status for client ! BRIEFING_TEXT = 12 ///< briefing text for client }; + static void AddBriefingText(long alliance, tcStream& stream); static void AddCommandAck(tcGameObject* obj, tcCommandStream& stream); static void AddCommandUpdate(tcGameObject* obj, tcCommandStream& stream); *************** *** 83,86 **** --- 85,89 ---- virtual void Handle(int connectionId, unsigned messageSize, const unsigned char *data); + void HandleBriefingText(tcStream& stream); void HandleCommandAck(tcCommandStream& stream); ///< command ack void HandleCommandUpdate(tcCommandStream& stream, int connectionId); ///< command update Index: tcMultiplayerInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcMultiplayerInterface.h,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** tcMultiplayerInterface.h 26 Jul 2005 00:37:02 -0000 1.26 --- tcMultiplayerInterface.h 10 Sep 2005 21:48:06 -0000 1.27 *************** *** 118,121 **** --- 118,122 ---- //std::string GetChatText(); + bool GetAcceptAllClients() const; const std::list<int>& GetConnectionList() const; const std::vector<int>& GetConnectionVector() const; *************** *** 144,147 **** --- 145,149 ---- void SendAuthRequest(int destination); void SendAuthResponse(int destination); + void SendBriefingText(int destination, int alliance); void SendChatText(int destination, const std::string& message); void SendControlMessage(int destination, int messageCode, int param = 0); *************** *** 157,160 **** --- 159,163 ---- void SendUpdateMessageAck(int destination, tcStream& stream); void SendUpdateMessageTCP(int destination, tcStream& stream); + void SetAcceptAllClients(bool state); void SetChatProtocol(int code); void SetEvtHandler(wxEvtHandler *eh); *************** *** 177,180 **** --- 180,184 ---- std::map<int, std::vector<tcMessageHandler*> > messageMap; ///< map of (message id, message handler vector) pairs bool tcpChat; ///< true to use TCP for chat protocol, otherwise UDP + bool acceptAllClients; ///< true to accept all client logins, adding to accounts db if necessary tcPlayerStatus errorPlayerStatus; ///< status to return if player not found tcPlayerStatus serverPlayerStatus; ///< status to use for server actions *************** *** 198,201 **** --- 202,206 ---- void ProcessReceiveMessages(); + void ProcessWho(tcPlayerStatus& player, const wxString& args); void UpdateDestroyedEntities(int connectionId); void UpdateNewAndExistingEntities(int connectionId); Index: tcNetworkInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcNetworkInterface.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** tcNetworkInterface.h 6 May 2005 23:57:15 -0000 1.12 --- tcNetworkInterface.h 10 Sep 2005 21:48:06 -0000 1.13 *************** *** 64,68 **** const std::map<int, tcConnectionData*>& GetConnectionMap(); ! const std::string& GetConnectionStatus(int id); tcMessage* GetMessage(int id); unsigned int GetNumConnections(); --- 64,68 ---- const std::map<int, tcConnectionData*>& GetConnectionMap(); ! const std::string& GetConnectionStatus(int id, int detailLevel = 1); tcMessage* GetMessage(int id); unsigned int GetNumConnections(); |