20 #include "../Engine/Surface.h" 34 Uint8 _color, _color2, _borderColor;
35 double _scale, _max, _value, _value2;
39 Bar(
int width,
int height,
int x = 0,
int y = 0);
void setValue2(double value)
Sets the bar's second current value.
Definition: Bar.cpp:143
void setScale(double scale)
Sets the bar's scale.
Definition: Bar.cpp:86
void setMax(double max)
Sets the bar's maximum value.
Definition: Bar.cpp:105
Bar graphic that represents a certain value.
Definition: Bar.h:31
Uint8 getColor() const
Gets the bar's color.
Definition: Bar.cpp:58
void setValue(double value)
Sets the bar's current value.
Definition: Bar.cpp:124
void setBorderColor(Uint8 bc)
set the outline color for the bar.
Definition: Bar.cpp:213
double getValue() const
Gets the bar's current value.
Definition: Bar.cpp:134
void draw()
Draws the bar.
Definition: Bar.cpp:171
Element that is blit (rendered) onto the screen.
Definition: Surface.h:38
Bar(int width, int height, int x=0, int y=0)
Creates a new bar with the specified size and position.
Definition: Bar.cpp:32
void setSecondaryColor(Uint8 color)
Sets the bar's second color.
Definition: Bar.cpp:67
~Bar()
Cleans up the bar.
Definition: Bar.cpp:40
double getMax() const
Gets the bar's maximum value.
Definition: Bar.cpp:115
Uint8 getSecondaryColor() const
Gets the bar's second color.
Definition: Bar.cpp:77
double getScale() const
Gets the bar's scale.
Definition: Bar.cpp:96
double getValue2() const
Gets the bar's second current value.
Definition: Bar.cpp:153
void setSecondValueOnTop(bool onTop)
Defines whether the second value should be drawn on top.
Definition: Bar.cpp:162
void setColor(Uint8 color)
Sets the bar's color.
Definition: Bar.cpp:48
Definition: BaseInfoState.cpp:40