Changeset 2087 for code/trunk/src/orxonox/Settings.h
- Timestamp:
- Nov 1, 2008, 7:04:09 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/Settings.h
r1907 r2087 50 50 friend class ClassIdentifier<Settings>; 51 51 friend class GSRoot; 52 friend class GSGraphics;53 friend class GSServer;54 friend class GSClient;55 friend class GSDedicated;56 52 57 53 public: … … 61 57 { assert(singletonRef_s); singletonRef_s->_tsetDataPath(path); } 62 58 63 // an alternative to a global game mode variable64 static bool showsGraphics() { assert(singletonRef_s); return singletonRef_s->bShowsGraphics_; }65 static bool hasServer() { assert(singletonRef_s); return singletonRef_s->bHasServer_; }66 static bool isClient() { assert(singletonRef_s); return singletonRef_s->bIsClient_; }67 68 59 private: 69 // GSRoot has access to these70 static void setShowsGraphics(bool val) { assert(singletonRef_s); singletonRef_s->bShowsGraphics_ = val; }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; }73 74 60 Settings(); 75 61 Settings(const Settings& instance); … … 82 68 void setConfigValues(); 83 69 84 bool bShowsGraphics_; //!< global variable that tells whether to show graphics85 bool bHasServer_; //!< global variable that tells whether this is a server86 bool bIsClient_;87 88 70 std::string dataPath_; //!< Path to the game data 89 71
Note: See TracChangeset
for help on using the changeset viewer.