Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 3, 2008, 2:52:50 PM (16 years ago)
Author:
chaiy
Message:

hallo

File:
1 edited

Legend:

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

    r825 r980  
    3030#define _BAR_H__
    3131
    32 #include <string>
    33 #include <OgreColourValue.h>
     32#include <string.h>
    3433#include <OgreOverlayElement.h>
     34#include <OgreTextAreaOverlayElement.h>
    3535#include <OgrePrerequisites.h>
    36 #include <string.h>
    3736#include "../OrxonoxPrereqs.h"
    3837
    3938
    4039
    41 // namespace hud
    4240namespace orxonox
    4341{
    44   class Bar : public Ogre::OverlayElement
     42  class _OrxonoxExport Bar
    4543  {
    4644  private:
    47     double percentage_;
    48     bool horz_;
    49     Ogre::ColourValue color_;
     45    int percentage_;
     46    int dir_;   
     47    int left_;
     48    int top_;
     49    int width_;
     50    int height_;
     51       
     52  public:
     53    static const int LEFT = 0;
     54    static const int UP = 1;
     55    static const int RIGHT = 2;
     56    static const int DOWN = 3;
     57
     58    static const int RED = 0;
     59    static const int YELLOW = 1;
     60    static const int GREEN = 2;
     61
     62    Ogre::OverlayElement* element;
     63
     64    Bar(Ogre::Real left, Ogre::Real top, Ogre::Real width, Ogre::Real height,
     65        int dir, int colour, std::string name);
     66    ~Bar(void);
     67    void reset(int percentage);
     68    void setColour(int colour);
     69    void show();
     70    void hide();
     71   
     72  };
    5073
    5174
     75  class _OrxonoxExport SmartBar : public Bar
     76  {
     77  private:
     78
    5279  public:
    53     Bar(void);
    54     ~Bar(void);
    55     void setPercentage(Ogre::Real percentage);
    56     void setColor(Ogre::ColourValue color);
     80    SmartBar(Ogre::Real left, Ogre::Real top, Ogre::Real width, Ogre::Real height,
     81        int dir, std::string name);
     82    ~SmartBar(void);
     83    void reset(int percentage);
    5784  };
    5885}
Note: See TracChangeset for help on using the changeset viewer.