Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2011, 2:38:34 AM (13 years ago)
Author:
rgrieder
Message:

Replaced TriBool with a modified version of boost::tribool. The main reason was that 'True' and 'False' had to be replaced because of macro collisions.
So why not use the real true and false with a third state? That's what boost tribool did, so I changed that implementation to fit our needs and change its behavior.
It's also safer to use because it avoids unwanted implicit conversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/libraries/core/GUIManager.h

    r8669 r8678  
    4646#include "util/DestructionHelper.h"
    4747#include "util/OgreForwardRefs.h"
    48 #include "util/TriBool.h"
     48#include "util/tribool.h"
    4949#include "util/Singleton.h"
    5050#include "input/InputHandler.h"
    5151#include "OrxonoxClass.h"
    5252#include "WindowEventListener.h"
    53 
    54 // Tolua includes (have to be relative to the current directory)
    55 /*
    56 $cfile "../util/TriBool.h" // tolua_export
    57 */
    5853
    5954#if CEGUI_VERSION_MAJOR < 1 && CEGUI_VERSION_MINOR < 7
     
    6459{ // tolua_export
    6560    class PlayerInfo; // Forward declaration
     61
     62    // Acquaint Tolua with tribool
     63    class tribool; // tolua_export
    6664
    6765    /**
     
    105103
    106104        //! Creates a new InputState to be used with a GUI Sheet
    107         const std::string& createInputState(const std::string& name, TriBool::Value showCursor = TriBool::True, TriBool::Value useKeyboard = TriBool::True, bool bBlockJoyStick = false); // tolua_export
     105        const std::string& createInputState(const std::string& name, tribool showCursor = true, tribool useKeyboard = true, bool bBlockJoyStick = false); // tolua_export
    108106        LuaState* getLuaState(void)
    109107            { return this->luaState_; }
Note: See TracChangeset for help on using the changeset viewer.