Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2009, 1:59:00 AM (15 years ago)
Author:
landauf
Message:

Merged gui branch back to trunk.

I did 2 small changes in IngameManager.cc on line 777 and 888 (yes, really), because const_reverse_iterator strangely doesn't work on MinGW.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/core/Core.h

    r2759 r2896  
    2222 *   Author:
    2323 *      Fabian 'x3n' Landau
     24 *      Reto Grieder
    2425 *   Co-authors:
    25  *      Reto Grieder
     26 *      ...
    2627 *
    2728 */
     
    4445#include "util/OutputHandler.h"
    4546
    46 // Only allow main to access postMainInitialisation, so we need a forward declaration
    47 int main(int, char**);
    4847// boost::filesystem header has quite a large tail, use forward declaration
    4948namespace boost { namespace filesystem
     
    5958    class _CoreExport Core : public OrxonoxClass
    6059    {
    61         friend int ::main(int, char**); // sets isDevBuild_s
    62 
    6360        public:
    6461            Core();
    6562            ~Core();
     63
     64            void initialise(int argc, char** argv);
    6665            void setConfigValues();
     66
     67            void update(const Clock& time);
    6768
    6869            static Core& getInstance() { assert(Core::singletonRef_s); return *Core::singletonRef_s; }
     
    7273            static const std::string& getLanguage();
    7374            static void  resetLanguage();
    74 
    75             static bool isDevBuild() { return Core::isDevBuild_s; }
    7675
    7776            static void tsetMediaPath(const std::string& path)
     
    8483            static std::string getLogPathString();
    8584
    86             // fast access global variables.
    87             static bool showsGraphics() { return bShowsGraphics_s; }
    88             static bool hasServer()     { return bHasServer_s; }
    89             static bool isClient()      { return bIsClient_s; }
    90             static bool isStandalone()  { return bIsStandalone_s; }
    91             static bool isMaster()      { return bIsMaster_s; }
    92             static void setShowsGraphics(bool val) { bShowsGraphics_s = val; updateIsMaster(); }
    93             static void setHasServer    (bool val) { bHasServer_s     = val; updateIsMaster(); }
    94             static void setIsClient     (bool val) { bIsClient_s      = val; updateIsMaster(); }
    95             static void setIsStandalone (bool val) { bIsStandalone_s  = val; updateIsMaster(); }
    96             static void updateIsMaster  ()         { bIsMaster_s      = (bHasServer_s || bIsStandalone_s); }
    97 
    9885        private:
    9986            Core(const Core&);
     87
     88            void checkDevBuild();
     89            void setExecutablePath();
     90            void createDirectories();
     91            void setThreadAffinity(int limitToCPU);
     92
    10093            void resetLanguageIntern();
    10194            void initializeRandomNumberGenerator();
     
    10598            void _tsetMediaPath(const std::string& path);
    10699
    107             static void postMainInitialisation();
    108             static void checkDevBuild();
    109             static void setExecutablePath();
    110             static void createDirectories();
     100            // Singletons
     101            ConfigFileManager*    configFileManager_;
     102            Language*             languageInstance_;
     103            LuaBind*              luaBind_;
     104            Shell*                shell_;
     105            SignalHandler*        signalHandler_;
     106            TclBind*              tclBind_;
     107            TclThreadManager*     tclThreadManager_;
    111108
    112109            int softDebugLevel_;                            //!< The debug level
     
    117114            bool bInitializeRandomNumberGenerator_;         //!< If true, srand(time(0)) is called
    118115            std::string mediaPathString_;                   //!< Path to the data/media file folder as string
    119 
    120             static bool bShowsGraphics_s;                   //!< global variable that tells whether to show graphics
    121             static bool bHasServer_s;                       //!< global variable that tells whether this is a server
    122             static bool bIsClient_s;
    123             static bool bIsStandalone_s;
    124             static bool bIsMaster_s;
    125 
    126             static bool isDevBuild_s;                       //!< True for builds in the build directory (not installed)
     116            bool isDevBuild_;                               //!< True for builds in the build directory (not installed)
     117            bool loaded_;                                   //!< Only true if constructor was interrupted
    127118
    128119            static Core* singletonRef_s;
Note: See TracChangeset for help on using the changeset viewer.