Changeset 1534 for code/trunk/src/network/Client.cc
- Timestamp:
- Jun 4, 2008, 8:53:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/Client.cc
r1505 r1534 42 42 #include "Synchronisable.h" 43 43 #include "core/CoreIncludes.h" 44 #include "core/ConsoleCommand.h" 45 #include "Server.h" 44 46 45 47 namespace network 46 48 { 49 SetConsoleCommandShortcut(Client, Chat); 50 47 51 Client* Client::_sClient = 0; 48 52 … … 142 146 143 147 148 void Client::Chat( std::string message ){ 149 if(Client::getSingleton()) 150 Client::getSingleton()->sendChat(message); 151 else if(Server::getSingleton()) 152 Server::getSingleton()->sendChat(message); 153 else 154 COUT(1) << "do you want to monologize ??" << std::endl; 155 } 144 156 145 157 … … 224 236 } 225 237 226 void Client::processChat( chat *data ){227 COUT( 0) << "Server: "<< data->message << std::endl;238 void Client::processChat( chat *data, int clientId){ 239 COUT(1) << data->message << std::endl; 228 240 delete[] data->message; 229 241 delete data;
Note: See TracChangeset
for help on using the changeset viewer.