Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2008, 9:39:23 PM (17 years ago)
Author:
FelixSchulthess
Message:

edited bar, removed smartbar and replaced functionality with a boolean autoColor to indicate whether the bar should change color automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/hud/OverlayElementFactories.h

    r1302 r1328  
    2222*      Yuning Chai
    2323*   Co-authors:
    24 *      ...
     24*      Felix Schulthess
    2525*
    2626*/
     
    2828#ifndef _FACTORIES_H__
    2929#define _FACTORIES_H__
    30 
    3130
    3231#include <OgreOverlayElement.h>
     
    3635#include "BarOverlayElement.h"
    3736
     37namespace orxonox{
     38    class _OrxonoxExport BarOverlayElementFactory : public Ogre::OverlayElementFactory{
     39        public:
     40        Ogre::OverlayElement* createOverlayElement(const Ogre::String& instanceName){
     41            return new BarOverlayElement(instanceName);
     42        }
     43        const Ogre::String& getTypeName(void) const{
     44            static Ogre::String name = "Bar";
     45            return name;
     46        }
     47    };
    3848
    39 namespace orxonox{
    40 
    41   class _OrxonoxExport BarOverlayElementFactory : public Ogre::OverlayElementFactory{
    42     public:
    43     Ogre::OverlayElement* createOverlayElement(const Ogre::String& instanceName){
    44       return new BarOverlayElement(instanceName);
    45     }
    46     const Ogre::String& getTypeName(void) const{
    47       static Ogre::String name = "Bar";
    48       return name;
    49     }
    50   };
    51 
    52 
    53   class _OrxonoxExport SmartBarOverlayElementFactory : public Ogre::OverlayElementFactory{
    54     public:
    55     Ogre::OverlayElement* createOverlayElement(const Ogre::String& instanceName){
    56       return new SmartBarOverlayElement(instanceName);
    57     }
    58     const Ogre::String& getTypeName(void) const{
    59       static Ogre::String name = "SmartBar";
    60       return name;
    61     }
    62   };
    63 
    64   class _OrxonoxExport RadarOverlayElementFactory : public Ogre::OverlayElementFactory{
    65     public:
    66       Ogre::OverlayElement* createOverlayElement(const Ogre::String& instanceName){
    67         return new RadarOverlayElement(instanceName);
    68       }
    69       const Ogre::String& getTypeName(void) const{
    70         static Ogre::String name = "Radar";
    71         return name;
    72       }
    73   };
     49    class _OrxonoxExport RadarOverlayElementFactory : public Ogre::OverlayElementFactory{
     50        public:
     51        Ogre::OverlayElement* createOverlayElement(const Ogre::String& instanceName){
     52            return new RadarOverlayElement(instanceName);
     53        }
     54        const Ogre::String& getTypeName(void) const{
     55            static Ogre::String name = "Radar";
     56            return name;
     57        }
     58    };
    7459}
    7560
    76 
    77 
    78 
    7961#endif
Note: See TracChangeset for help on using the changeset viewer.