- Timestamp:
- Jul 24, 2006, 11:18:32 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/proxy/network_settings.cc
r9406 r9409 104 104 105 105 LoadParam(root, "max-player", this, NetworkSettings, setMaxPlayer); 106 LoadParam(root, "max-player-saturation", this, NetworkSettings, setMaxPlayerSaturations); 106 107 107 108 -
branches/proxy/src/lib/network/proxy/network_settings.h
r9406 r9409 36 36 /** @param number: sets the max number of players */ 37 37 inline void setMaxPlayer(int number) { this->maxPlayer = number; } 38 /** sets the @param saturation: a threshold in percente when the proxy servers should be activated to be able to redirect the clients */ 39 inline void setMaxPlayerSaturation(float saturation) { this->maxPlayerSaturation = saturation; } 38 40 /** @returns teh max number of players */ 39 41 int getMaxPlayer() { return this->maxPlayer; } … … 53 55 54 56 private: 55 static NetworkSettings* singletonRef; //!< Pointer to the only instance of this Class 57 static NetworkSettings* singletonRef; //!< Pointer to the only instance of this Class 58 56 59 int maxPlayer; //!< maximal number of players 60 float maxPlayerSaturation; //!< the saturation level from where on the proxy server should be activated 61 57 62 std::vector<IPaddress*> proxies; //!< all registered proxies 58 63 IP masterServer; //!< master server ip address -
branches/proxy/src/lib/network/shared_network_data.cc
r9406 r9409 34 34 this->setClassID(CL_SHARED_NETWORK_DATA, "SharedNetworkData"); 35 35 36 this->nodeType = NET_ CLIENT;36 this->nodeType = NET_MASTER_SERVER; 37 37 this->hostID = -1; 38 38 this->defaultSyncStream = NULL;
Note: See TracChangeset
for help on using the changeset viewer.