Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

working on player limits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.