Changeset 9494 in orxonox.OLD for trunk/src/lib/network/shared_network_data.cc
- Timestamp:
- Jul 27, 2006, 10:44:28 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/shared_network_data.cc
r9406 r9494 20 20 #include "state.h" 21 21 22 #include "network_stream.h" 23 22 24 #include "debug.h" 23 25 … … 34 36 this->setClassID(CL_SHARED_NETWORK_DATA, "SharedNetworkData"); 35 37 36 this->nodeType = NET_ CLIENT;38 this->nodeType = NET_MASTER_SERVER; 37 39 this->hostID = -1; 38 40 this->defaultSyncStream = NULL; … … 51 53 SharedNetworkData::singletonRef = NULL; 52 54 } 55 56 57 58 /** @return true if this user is connected to the local host */ 59 bool SharedNetworkData::isUserLocal( int userID) 60 { 61 return this->defaultSyncStream->isUserLocal(userID); 62 } 63 64 65 /** @returns true if this user is a master server */ 66 bool SharedNetworkData::isUserMasterServer( int userID ) 67 { 68 return this->defaultSyncStream->isUserMasterServer(userID); 69 } 70 71 72 /** @returns true if this user is a proxy server */ 73 bool SharedNetworkData::isUserProxyServerActive( int userID ) 74 { 75 return this->defaultSyncStream->isUserProxyServerActive(userID); 76 } 77 78 79 /** @returns true if this user is a client */ 80 bool SharedNetworkData::isUserClient( int userID ) 81 { 82 return this->defaultSyncStream->isUserClient(userID); 83 }
Note: See TracChangeset
for help on using the changeset viewer.