Changeset 9494 in orxonox.OLD for trunk/src/lib/network/peer_info.h
- Timestamp:
- Jul 27, 2006, 10:44:28 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/peer_info.h
r9406 r9494 22 22 23 23 24 inline bool isMasterServer() { return this->nodeType == NET_MASTER_SERVER; }25 inline bool isProxyServer (){ return this->nodeType == NET_PROXY_SERVER_ACTIVE; }26 inline bool isProxyServer Passive(){ return this->nodeType == NET_PROXY_SERVER_PASSIVE; }27 inline bool isClient() { return this->nodeType == NET_CLIENT; }24 inline bool isMasterServer() const { return this->nodeType == NET_MASTER_SERVER; } 25 inline bool isProxyServerActive() const { return this->nodeType == NET_PROXY_SERVER_ACTIVE; } 26 inline bool isProxyServerActivePassive() const { return this->nodeType == NET_PROXY_SERVER_PASSIVE; } 27 inline bool isClient() const { return this->nodeType == NET_CLIENT; } 28 28 29 std::string getNodeTypeString(); 29 const std::string& getNodeTypeString() const; 30 static const std::string& nodeTypeToString(unsigned int type); 31 30 32 31 33 … … 41 43 int lastAckedState; //!< last acked state synchronized state 42 44 int lastRecvedState; //!< last received state 45 46 static const std::string nodeNames[]; 47 43 48 }; 44 49
Note: See TracChangeset
for help on using the changeset viewer.