Changeset 9459 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.h
- Timestamp:
- Jul 25, 2006, 5:07:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.h
r9453 r9459 55 55 56 56 /* functions for the peerInfo information retreival */ 57 /** @returns true if this userId is activated at this client false if not*/ 57 58 inline bool isUserIdActive( int userID ) { return (peers.find(userID) != peers.end()); } 59 /** @returns true if this userId is a local client */ 60 inline bool isUserLocal( int userID) { return this->isUserIdActive(userID); } 61 /** @returns true if this user is a master server */ 58 62 inline bool isUserMasterServer( int userID ){ if ( !isUserIdActive(userID) ) return false; return peers[userID].isMasterServer(); } 63 /** @returns true if this user is a proxy server */ 59 64 inline bool isUserProxyServerActive( int userID ){ if ( !isUserIdActive(userID) ) return false; return peers[userID].isProxyServerActive(); } 65 /** @returns true if this user is a client */ 60 66 inline bool isUserClient( int userID ){ if ( !isUserIdActive(userID) ) return false; return peers[userID].isClient(); } 61 67
Note: See TracChangeset
for help on using the changeset viewer.