- Timestamp:
- Jul 18, 2006, 4:11:15 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/proxy/proxy_settings.h
r9301 r9326 29 29 void loadProxySettings(const TiXmlElement* root); 30 30 31 /** @ returns the max number of players */31 /** @param number: sets the max number of players */ 32 32 inline void setMaxPlayer(int number) { this->maxPlayer = number; } 33 /** @returns teh max number of players */ 34 int getMaxPlayer() { return this->maxPlayer; } 33 35 void setProxyAddr(const std::string& proxyAddr); 34 36 -
branches/proxy/src/lib/network/shared_network_data.h
r9303 r9326 9 9 #include "base_object.h" 10 10 #include "netdefs.h" 11 #include "proxy/proxy_settings.h" 11 12 12 13 13 14 class NetworkStream; 14 15 class Synchronizeable; 15 template<typename> 16 class tList; 16 17 17 18 18 /* and here is the class itsself*/ … … 36 36 /** sets the game server flag @param bGameServer true if it is a game server */ 37 37 inline void setNodeType(int nodeType) { this->nodeType = nodeType; } 38 39 /** @returns the maximum number of players for this server */ 40 inline int getMaxPlayer() { return ProxySettings::getInstance()->getMaxPlayer(); } 38 41 39 42 /** @returns the hostID of the node */
Note: See TracChangeset
for help on using the changeset viewer.