Changeset 2848 for code/branches/gui/src/core/Core.h
- Timestamp:
- Mar 25, 2009, 7:37:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/Core.h
r2846 r2848 83 83 static std::string getLogPathString(); 84 84 85 // fast access global variables.86 static bool showsGraphics() { return bShowsGraphics_s; }87 static bool hasServer() { return bHasServer_s; }88 static bool isClient() { return bIsClient_s; }89 static bool isStandalone() { return bIsStandalone_s; }90 static bool isMaster() { return bIsMaster_s; }91 static void setShowsGraphics(bool val) { bShowsGraphics_s = val; updateIsMaster(); }92 static void setHasServer (bool val) { bHasServer_s = val; updateIsMaster(); }93 static void setIsClient (bool val) { bIsClient_s = val; updateIsMaster(); }94 static void setIsStandalone (bool val) { bIsStandalone_s = val; updateIsMaster(); }95 static void updateIsMaster () { bIsMaster_s = (bHasServer_s || bIsStandalone_s); }96 97 85 private: 98 86 Core(const Core&); … … 129 117 bool loaded_; //!< Only true if constructor was interrupted 130 118 131 static bool bShowsGraphics_s; //!< global variable that tells whether to show graphics132 static bool bHasServer_s; //!< global variable that tells whether this is a server133 static bool bIsClient_s;134 static bool bIsStandalone_s;135 static bool bIsMaster_s;136 137 119 static Core* singletonRef_s; 138 120 };
Note: See TracChangeset
for help on using the changeset viewer.