Changeset 436 for code/branches/FICN/src/network/ClientInformation.h
- Timestamp:
- Dec 9, 2007, 12:42:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/ClientInformation.h
r432 r436 13 13 #define NETWORKCLIENTINFORMATION_H 14 14 15 #include <enet/enet.h> 16 17 #define GAMESTATEID_INITIAL -1 18 15 19 namespace network { 16 20 … … 22 26 public: 23 27 ClientInformation(); 28 ClientInformation(bool head); 24 29 // ClientInformation(ClientInformation *prev, ClientInformation *next); 25 30 // ClientInformation(ClientInformation *prev); … … 27 32 ClientInformation *next(); 28 33 ClientInformation *prev(); 29 void setNext(ClientInformation *next); 30 void setPrev(ClientInformation *prev); 31 void insertAfter(ClientInformation *ins); 32 void insertBefore(ClientInformation *ins); 34 bool setNext(ClientInformation *next); 35 bool setPrev(ClientInformation *prev); 36 ClientInformation *insertAfter(ClientInformation *ins); 37 ClientInformation *insertBefore(ClientInformation *ins); 38 ClientInformation *insertBack(ClientInformation *ins); 39 void setID(int clientID); 40 void setPeer(ENetPeer *peer); 41 void setGamestateID(int id); 42 int getID(); 43 ENetPeer *getPeer(); 44 int getGamestateID(); 45 bool removeClient(int clientID); 46 bool removeClient(ENetPeer *peer); 47 ClientInformation *findClient(int clientID, bool look_backwards=false); 48 ClientInformation *findClient(ENetAddress *address, bool look_backwards=false); 49 bool head; 33 50 34 51 private: 35 52 ClientInformation *preve; 36 53 ClientInformation *nexte; 54 //actual information: 55 ENetPeer *peer_; 56 int clientID_; 57 int gamestateID_; 37 58 }; 38 59
Note: See TracChangeset
for help on using the changeset viewer.