[Gcblue-commits] gcb_wx/include/network tcMultiplayerInterface.h,1.24,1.25 tcUpdateMessageHandler.h,
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-05-08 23:28:12
|
Update of /cvsroot/gcblue/gcb_wx/include/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17728/include/network Modified Files: tcMultiplayerInterface.h tcUpdateMessageHandler.h Log Message: Landing bug fix, changed /gm create to require starting coords, added fuel to air update Index: tcUpdateMessageHandler.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcUpdateMessageHandler.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** tcUpdateMessageHandler.h 5 May 2005 02:14:19 -0000 1.8 --- tcUpdateMessageHandler.h 8 May 2005 23:27:56 -0000 1.9 *************** *** 61,65 **** CONTROL_REQUEST = 7, ///< request to take control of obj SOUND_EFFECT = 8, ///< play sound effect for object ! SCRIPT_COMMANDS = 9 ///< script commands to execute on server }; --- 61,66 ---- CONTROL_REQUEST = 7, ///< request to take control of obj SOUND_EFFECT = 8, ///< play sound effect for object ! SCRIPT_COMMANDS = 9, ///< script commands to execute on server ! SCENARIO_INFO = 10 ///< info on scenario }; *************** *** 71,74 **** --- 72,76 ---- static void AddCreateRequest(long id, tcStream& stream); static void AddDestroy(long id, tcStream& stream); + static void AddScenarioInfo(tcUpdateStream& stream); static void AddSensorUpdateHeader(long alliance, tcStream& stream); static void AddSoundEffect(long id, const std::string& effect, tcStream& stream); *************** *** 85,88 **** --- 87,91 ---- void HandleCreateRequest(tcStream& stream, int connectionId); void HandleDestroy(tcStream& stream); + void HandleScenarioInfo(tcUpdateStream& stream); void HandleScriptCommands(tcStream& stream, int connectionId); void HandleSensorUpdate(tcUpdateStream& stream); Index: tcMultiplayerInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcMultiplayerInterface.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** tcMultiplayerInterface.h 6 May 2005 23:57:15 -0000 1.24 --- tcMultiplayerInterface.h 8 May 2005 23:27:56 -0000 1.25 *************** *** 115,121 **** --- 115,123 ---- void BroadcastChatText(const std::string& message); void BroadcastControlMessage(int messageCode); + void BroadcastScenarioInfo(); //std::string GetChatText(); const std::list<int>& GetConnectionList() const; + const std::vector<int>& GetConnectionVector() const; const std::string& GetConnectionStatus(int connectionId); wxEvtHandler* GetEvtHandler() const; *************** *** 148,151 **** --- 150,154 ---- void SendControlRelease(long id); void SendControlRequest(long id); + void SendScenarioInfo(const std::vector<int>& destinations); void SendSoundEffect(const std::string& player, const std::string& effect, long id = -1); void SendSoundEffect(int destination, const std::string& effect, long id = -1); *************** *** 153,156 **** --- 156,160 ---- void SendUpdateMessage(int destination, tcStream& stream); void SendUpdateMessageAck(int destination, tcStream& stream); + void SendUpdateMessageTCP(int destination, tcStream& stream); void SetChatProtocol(int code); void SetEvtHandler(wxEvtHandler *eh); |