Changeset 1949 for code/branches/objecthierarchy/src/core
- Timestamp:
- Oct 19, 2008, 2:24:33 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/Core.cc
r1762 r1949 37 37 #include "CoreIncludes.h" 38 38 #include "ConfigValueIncludes.h" 39 //#include "input/InputManager.h"40 //#include "TclThreadManager.h"41 39 42 40 namespace orxonox 43 41 { 42 bool Core::bShowsGraphics_s = false; 43 bool Core::bHasServer_s = false; 44 bool Core::bIsClient_s = false; 45 bool Core::bIsStandalone_s = false; 46 bool Core::bIsMaster_s = false; 47 44 48 /** 45 49 @brief Constructor: Registers the object and sets the config-values. … … 205 209 ResetConfigValue(language_); 206 210 } 207 208 ///**209 // @brief Ticks every core class in a specified sequence. Has to be called210 // every Orxonox tick!211 // @param dt Delta Time212 //*/213 //void Core::tick(float dt)214 //{215 // TclThreadManager::getInstance().tick(dt);216 // InputManager::getInstance().tick(dt);217 //}218 211 } -
code/branches/objecthierarchy/src/core/Core.h
r1755 r1949 60 60 static void resetLanguage(); 61 61 62 //static void tick(float dt); 62 // fast access global variables. 63 static bool showsGraphics() { return bShowsGraphics_s; } 64 static bool hasServer() { return bHasServer_s; } 65 static bool isClient() { return bIsClient_s; } 66 static bool isStandalone() { return bIsStandalone_s; } 67 static bool isMaster() { return bIsMaster_s; } 68 static void setShowsGraphics(bool val) { bShowsGraphics_s = val; updateIsMaster(); } 69 static void setHasServer (bool val) { bHasServer_s = val; updateIsMaster(); } 70 static void setIsClient (bool val) { bIsClient_s = val; updateIsMaster(); } 71 static void setIsStandalone (bool val) { bIsStandalone_s = val; updateIsMaster(); } 72 static void updateIsMaster () { bIsMaster_s = (bHasServer_s || bIsStandalone_s); } 63 73 64 74 private: … … 74 84 int softDebugLevelShell_; //!< The debug level for the ingame shell 75 85 std::string language_; //!< The language 86 87 static bool bShowsGraphics_s; //!< global variable that tells whether to show graphics 88 static bool bHasServer_s; //!< global variable that tells whether this is a server 89 static bool bIsClient_s; 90 static bool bIsStandalone_s; 91 static bool bIsMaster_s; 76 92 }; 77 93 }
Note: See TracChangeset
for help on using the changeset viewer.