[Gcblue-commits] gcb_wx/src/network tcMultiplayerInterface.cpp,1.18,1.19
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-03-04 00:46:43
|
Update of /cvsroot/gcblue/gcb_wx/src/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11821/src/network Modified Files: tcMultiplayerInterface.cpp Log Message: Better sensor ageout behavior, more ai work, misc cleanup Index: tcMultiplayerInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/network/tcMultiplayerInterface.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** tcMultiplayerInterface.cpp 2 Nov 2004 04:23:56 -0000 1.18 --- tcMultiplayerInterface.cpp 4 Mar 2005 00:46:17 -0000 1.19 *************** *** 299,303 **** * @return true if text is a (server) command */ ! bool tcMultiplayerInterface::IsCommand(std::string text) { wxString candidate(text.c_str()); --- 299,303 ---- * @return true if text is a (server) command */ ! bool tcMultiplayerInterface::IsCommand(const std::string& text) { wxString candidate(text.c_str()); *************** *** 342,346 **** } ! void tcMultiplayerInterface::OpenConnection(std::string hostName) { networkInterface->OpenConnection(hostName.c_str()); --- 342,346 ---- } ! void tcMultiplayerInterface::OpenConnection(const std::string& hostName) { networkInterface->OpenConnection(hostName.c_str()); *************** *** 375,379 **** * @return string to send back to client */ ! void tcMultiplayerInterface::ProcessCommandClient(int connectionId, std::string text) { wxString candidate(text.c_str()); --- 375,380 ---- * @return string to send back to client */ ! void tcMultiplayerInterface::ProcessCommandClient(int connectionId, ! const std::string& text) { wxString candidate(text.c_str()); *************** *** 434,438 **** * text commands start with a forward slash '/' */ ! void tcMultiplayerInterface::ProcessCommandServer(std::string text) { wxASSERT(IsServer()); --- 435,439 ---- * text commands start with a forward slash '/' */ ! void tcMultiplayerInterface::ProcessCommandServer(const std::string& text) { wxASSERT(IsServer()); *************** *** 526,530 **** * Sends a test message of text to destination */ ! void tcMultiplayerInterface::SendChatText(int destination, std::string message) { char buff[256]; --- 527,531 ---- * Sends a test message of text to destination */ ! void tcMultiplayerInterface::SendChatText(int destination, const std::string& message) { char buff[256]; *************** *** 554,558 **** ! void tcMultiplayerInterface::SendTestUDP(int destination, std::string message) { size_t messageLength = message.length(); --- 555,559 ---- ! void tcMultiplayerInterface::SendTestUDP(int destination, const std::string& message) { size_t messageLength = message.length(); *************** *** 603,607 **** * Sets identification name string for player using this interface */ ! void tcMultiplayerInterface::SetName(const std::string &name) { myName = name; --- 604,608 ---- * Sets identification name string for player using this interface */ ! void tcMultiplayerInterface::SetName(const std::string& name) { myName = name; |