#include <HudFood.h>

Public Member Functions | |
| HudFood (MVFirefly *firefly, GLfloat width, GLfloat height) | |
| Constructor. | |
| HudFood (const HudFood &source) | |
| Copy Constructor. | |
| ~HudFood () | |
| Destructor. | |
| void | setFirefly (MVFirefly *firefly) |
| void | renderGl () |
| renders score to screen | |
| void | selectGl () |
| rednering for selection pass | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
Private Attributes | |
| MVFirefly * | firefly |
| Firefly to observe. | |
| Texture | barTexture |
| Texture to use in the status bar. | |
| Texture | emptyTexture |
| Texture to underlay an empty status bar with. | |
| GLfloat | width |
| Bar width. | |
| GLfloat | height |
| Bar height. | |
Displays current food reserves of Firefly
| HudFood::HudFood | ( | MVFirefly * | firefly, | |
| GLfloat | width, | |||
| GLfloat | height | |||
| ) |
Constructor.
| HudFood::HudFood | ( | const HudFood & | source | ) |
Copy Constructor.
| HudFood::~HudFood | ( | ) |
Destructor.
| void HudFood::setFirefly | ( | MVFirefly * | firefly | ) |
| void HudFood::renderGl | ( | ) | [virtual] |
| void HudFood::selectGl | ( | ) | [virtual] |
| string HudFood::toString | ( | ) | const [virtual] |
Returns a textual representation.
Reimplemented from Object2d.
| string HudFood::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from Object2d.
| enum classId HudFood::classId | ( | ) | const [virtual] |
Returns the class id of the object.
Reimplemented from Object2d.
MVFirefly* HudFood::firefly [private] |
Firefly to observe.
Texture HudFood::barTexture [private] |
Texture to use in the status bar.
Texture HudFood::emptyTexture [private] |
Texture to underlay an empty status bar with.
GLfloat HudFood::width [private] |
Bar width.
GLfloat HudFood::height [private] |
Bar height.
1.5.6