Changeset 1907 for code/trunk/src/orxonox/Settings.h
- Timestamp:
- Oct 12, 2008, 7:40:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Settings.h
r1784 r1907 52 52 friend class GSGraphics; 53 53 friend class GSServer; 54 friend class GSClient; 54 55 friend class GSDedicated; 55 56 … … 63 64 static bool showsGraphics() { assert(singletonRef_s); return singletonRef_s->bShowsGraphics_; } 64 65 static bool hasServer() { assert(singletonRef_s); return singletonRef_s->bHasServer_; } 66 static bool isClient() { assert(singletonRef_s); return singletonRef_s->bIsClient_; } 65 67 66 68 private: … … 68 70 static void setShowsGraphics(bool val) { assert(singletonRef_s); singletonRef_s->bShowsGraphics_ = val; } 69 71 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; } 70 73 71 74 Settings(); … … 81 84 bool bShowsGraphics_; //!< global variable that tells whether to show graphics 82 85 bool bHasServer_; //!< global variable that tells whether this is a server 86 bool bIsClient_; 83 87 84 88 std::string dataPath_; //!< Path to the game data
Note: See TracChangeset
for help on using the changeset viewer.