Changeset 1711 for code/branches/network/src/network/Host.cc
- Timestamp:
- Sep 5, 2008, 11:32:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Host.cc
r1705 r1711 28 28 29 29 30 bool Host::chat(std::string& message){31 if(!instance_)32 return false;33 packet::Chat *c = new packet::Chat(message, getPlayerID());34 return instance_->sendChat(c);35 }30 // bool Host::chat(std::string& message){ 31 // if(!instance_) 32 // return false; 33 // packet::Chat *c = new packet::Chat(message, getPlayerID()); 34 // return instance_->sendChat(c); 35 // } 36 36 37 bool Host::receiveChat(network::packet::Chat *message, unsigned int clientID){38 if(instance_)39 return instance_->processChat(message, clientID);40 else41 return false;42 }37 // bool Host::receiveChat(network::packet::Chat *message, unsigned int clientID){ 38 // if(instance_) 39 // return instance_->processChat(message, clientID); 40 // else 41 // return false; 42 // } 43 43 44 44 int Host::getPlayerID(){
Note: See TracChangeset
for help on using the changeset viewer.