Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2008, 7:40:47 PM (16 years ago)
Author:
scheusso
Message:

merged network branch back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Settings.h

    r1784 r1907  
    5252        friend class GSGraphics;
    5353        friend class GSServer;
     54        friend class GSClient;
    5455        friend class GSDedicated;
    5556
     
    6364        static bool showsGraphics() { assert(singletonRef_s); return singletonRef_s->bShowsGraphics_; }
    6465        static bool hasServer()     { assert(singletonRef_s); return singletonRef_s->bHasServer_; }
     66        static bool isClient()      { assert(singletonRef_s); return singletonRef_s->bIsClient_; }
    6567
    6668    private:
     
    6870        static void setShowsGraphics(bool val) { assert(singletonRef_s); singletonRef_s->bShowsGraphics_ = val; }
    6971        static void setHasServer    (bool val) { assert(singletonRef_s); singletonRef_s->bHasServer_     = val; }
     72        static void setIsClient     (bool val) { assert(singletonRef_s); singletonRef_s->bIsClient_      = val; }
    7073
    7174        Settings();
     
    8184        bool bShowsGraphics_;                                  //!< global variable that tells whether to show graphics
    8285        bool bHasServer_;                                      //!< global variable that tells whether this is a server
     86        bool bIsClient_;
    8387
    8488        std::string dataPath_;                                 //!< Path to the game data
Note: See TracChangeset for help on using the changeset viewer.