Changeset 1907 for code/trunk/src/network/Client.h
- Timestamp:
- Oct 12, 2008, 7:40:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/Client.h
r1735 r1907 73 73 bool closeConnection(); 74 74 bool queuePacket(ENetPacket *packet, int clientID); 75 bool processChat(packet::Chat *message, unsigned int clientID); 75 bool processChat(std::string message, unsigned int playerID); 76 virtual bool chat(std::string message); 76 77 //bool sendChat(packet::Chat *chat); 77 78 78 79 // static void Chat( std::string message ); 79 80 80 unsigned int shipID(){return shipID_;}81 int playerID(){return clientID_;}82 81 //static void setShipID( unsigned int shipID){ dynamic_cast<Client *>(instance_)->shipID_=shipID; } 83 82 static void setClientID( unsigned int clientID){ dynamic_cast<Client *>(instance_)->clientID_=clientID; } … … 86 85 87 86 private: 87 virtual bool isServer_(){return false;} 88 88 89 89 ClientConnection client_connection; … … 91 91 bool isConnected; 92 92 bool isSynched_; 93 94 bool sendChat( std::string message );95 93 96 // implement data processing functions of PacketDecoder97 // void processChat( chat *data, int clientId );98 int clientID_; // this is the id the server gave to us99 int shipID_;100 94 bool gameStateFailure_; 101 95 };
Note: See TracChangeset
for help on using the changeset viewer.