Changeset 1953 for code/branches/objecthierarchy/src/network/Client.cc
- Timestamp:
- Oct 19, 2008, 9:50:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/Client.cc
r1917 r1953 46 46 #include "core/CoreIncludes.h" 47 47 #include "packet/Packet.h" 48 48 49 // #include "packet/Acknowledgement.h" 49 50 … … 69 70 * @param port port of the application on the server 70 71 */ 71 Client::Client( std::stringaddress, int port) : client_connection(port, address){72 Client::Client(const std::string& address, int port) : client_connection(port, address){ 72 73 isConnected=false; 73 74 isSynched_=false; … … 116 117 } 117 118 118 bool Client::processChat( std::stringmessage, unsigned int playerID){119 COUT(1) << "Player " << playerID << ": " << message << std::endl;119 bool Client::processChat(const std::string& message, unsigned int playerID){ 120 // COUT(1) << "Player " << playerID << ": " << message << std::endl; 120 121 return true; 121 122 } 122 123 123 124 /** 124 125 * This function implements the method of sending a chat message to the server 125 * @param message message to be sent 126 * @param message message to be sent 126 127 * @return result(true/false) 127 128 */ 128 bool Client::chat( std::stringmessage){129 bool Client::chat(const std::string& message){ 129 130 packet::Chat *m = new packet::Chat(message, Host::getPlayerID()); 130 131 return m->send(); … … 134 135 /** 135 136 * Processes incoming packets, sends a gamestate to the server and does the cleanup 136 * @param time 137 * @param time 137 138 */ 138 139 void Client::tick(float time){
Note: See TracChangeset
for help on using the changeset viewer.