Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2007, 3:44:20 AM (16 years ago)
Author:
landauf
Message:

yet another version of the DebugLevel hack.
DebugLevel is an OrxonoxClass again, to make the softDebugLevel-variable changeable during the game. now there are 2 static bools to avoid an infinite recursion. i hope this works.
(btw: the ClassIdentifier seems to work now, finally)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/DebugLevel.h

    r689 r695  
    3838
    3939#include "CorePrereqs.h"
     40#include "OrxonoxClass.h"
    4041
    4142namespace orxonox
    4243{
    4344    //! The DebugLevel class is a singleton, only used to configure the amount of debug output.
    44     class _CoreExport DebugLevel
     45    class _CoreExport DebugLevel : public OrxonoxClass
    4546    {
    4647        public:
    4748            static int getSoftDebugLevel();
     49            void setConfigValues();
     50
    4851        private:
    49             DebugLevel();                       // don't create
     52            explicit DebugLevel(bool& bReturnSoftDebugLevel);
    5053            DebugLevel(const DebugLevel& dl) {} // don't copy
    5154            ~DebugLevel() {}                    // don't delete
Note: See TracChangeset for help on using the changeset viewer.