Changeset 1318 for code/branches/merge/src/network/ClientInformation.h
- Timestamp:
- May 18, 2008, 10:00:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merge/src/network/ClientInformation.h
r1299 r1318 44 44 45 45 #include <enet/enet.h> 46 #include <boost/thread/recursive_mutex.hpp> 46 47 47 48 #define GAMESTATEID_INITIAL -1 … … 63 64 ClientInformation *next(); 64 65 ClientInformation *prev(); 65 bool setNext(ClientInformation *next);66 bool setPrev(ClientInformation *prev);67 ClientInformation *insertAfter(ClientInformation *ins);68 ClientInformation *insertBefore(ClientInformation *ins);69 66 ClientInformation *insertBack(ClientInformation *ins); 70 67 … … 80 77 int getGamestateID(); 81 78 ENetPeer *getPeer(); 79 bool getHead(); 80 void setHead(bool h); 82 81 82 int getFailures(); 83 void addFailure(); 84 void resetFailures(); 83 85 84 86 bool removeClient(int clientID); … … 92 94 bool getSynched(); 93 95 94 bool head;95 unsigned short failures_;96 96 97 private: 97 private: 98 bool setNext(ClientInformation *next); 99 bool setPrev(ClientInformation *prev); 100 ClientInformation *insertAfter(ClientInformation *ins); 101 ClientInformation *insertBefore(ClientInformation *ins); 102 98 103 ClientInformation *preve; 99 104 ClientInformation *nexte; … … 104 109 int ShipID_; // this is the unique objectID 105 110 bool synched_; 111 bool head_; 112 unsigned short failures_; 113 static boost::recursive_mutex mutex_; 114 106 115 }; 107 116
Note: See TracChangeset
for help on using the changeset viewer.