Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9326 in orxonox.OLD


Ignore:
Timestamp:
Jul 18, 2006, 4:11:15 PM (18 years ago)
Author:
patrick
Message:

working on player limits

Location:
branches/proxy/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/proxy/proxy_settings.h

    r9301 r9326  
    2929    void loadProxySettings(const TiXmlElement* root);
    3030
    31     /** @returns the max number of players */
     31    /** @param number: sets the max number of players */
    3232    inline void setMaxPlayer(int number) { this->maxPlayer = number; }
     33    /** @returns teh max number of players */
     34    int getMaxPlayer() { return this->maxPlayer; }
    3335    void setProxyAddr(const std::string& proxyAddr);
    3436
  • branches/proxy/src/lib/network/shared_network_data.h

    r9303 r9326  
    99#include "base_object.h"
    1010#include "netdefs.h"
     11#include "proxy/proxy_settings.h"
    1112
    1213
    1314class NetworkStream;
    1415class Synchronizeable;
    15 template<typename>
    16     class tList;
     16
    1717
    1818/* and here is the class itsself*/
     
    3636    /** sets the game server flag @param bGameServer true if it is a game server */
    3737    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(); }
    3841
    3942    /** @returns the hostID of the node */
Note: See TracChangeset for help on using the changeset viewer.