Changeset 1711 for code/branches/network/src/network/Host.h
- Timestamp:
- Sep 5, 2008, 11:32:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Host.h
r1705 r1711 42 42 private: 43 43 //TODO add theese functions or adequate 44 virtual bool processChat(packet::Chat *message, unsigned int clientID)=0;45 virtual bool sendChat(packet::Chat *chat)=0;44 //virtual bool processChat(packet::Chat *message, unsigned int clientID)=0; 45 //virtual bool sendChat(packet::Chat *chat)=0; 46 46 virtual bool queuePacket(ENetPacket *packet, int clientID)=0; 47 47 virtual unsigned int shipID()=0; … … 58 58 static bool running(){return instance_!=0;} 59 59 static bool addPacket(ENetPacket *packet, int clientID=0); 60 static bool chat(std::string& message);61 static bool receiveChat(packet::Chat *message, unsigned int clientID);60 //static bool chat(std::string& message); 61 // static bool receiveChat(packet::Chat *message, unsigned int clientID); 62 62 static int getPlayerID(); 63 63 static unsigned int getShipID(); 64 65 // packet process functions 64 static void setClientID(unsigned int id){ instance_->clientID_ = id; } 65 static void setShipID(unsigned int id){ instance_->shipID_ = id; } 66 private: 67 unsigned int clientID_; 68 unsigned int shipID_; 66 69 }; 67 70
Note: See TracChangeset
for help on using the changeset viewer.