Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2007, 3:40:55 AM (16 years ago)
Author:
landauf
Message:

added Ogre::Vector2 as configurable type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/core/ConfigValueContainer.h

    r447 r450  
    1818#include <string>
    1919#include <list>
     20
     21#include "OgreVector2.h"
    2022#include "OgreVector3.h"
    2123#include "OgreColourValue.h"
     
    4648            ConfigValueContainer(const std::string& classname, const std::string& varname, bool defvalue);
    4749            ConfigValueContainer(const std::string& classname, const std::string& varname, const char* defvalue);
     50            ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::Vector2 defvalue);
    4851            ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::Vector3 defvalue);
    4952            ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::ColourValue defvalue);
     
    6770            /** @returns the value of the type std::string. @param value This is only needed to determine the right type. */
    6871            inline std::string getValue(const std::string& value)               { return this->value_string_; }
     72            /** @returns the value of the type Vector2. @param value This is only needed to determine the right type. */
     73            inline Ogre::Vector2 getValue(const Ogre::Vector2& value)           { return this->value_vector2_; }
    6974            /** @returns the value of the type Vector3. @param value This is only needed to determine the right type. */
    7075            inline Ogre::Vector3 getValue(const Ogre::Vector3& value)           { return this->value_vector3_; }
     
    8186            bool                value_bool_;                    //!< The value, if the variable is of the type bool
    8287            std::string         value_string_;                  //!< The value, if the variable is of the type string
     88            Ogre::Vector2       value_vector2_;                 //!< The value, if the variable is of the type Vector2
    8389            Ogre::Vector3       value_vector3_;                 //!< The value, if the variable is of the type Vector3
    8490            Ogre::ColourValue   value_colourvalue_;             //!< The value, if the variable is of the type ColourValue
Note: See TracChangeset for help on using the changeset viewer.