HudWater Class Reference

Water indicator. More...

#include <HudWater.h>

Inheritance diagram for HudWater:

Object2d ViewObject Object

List of all members.

Public Member Functions

 HudWater (MVFirefly *firefly, GLfloat width, GLfloat height)
 Constructor.
 HudWater (const HudWater &source)
 Copy Constructor.
 ~HudWater ()
 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

MVFireflyfirefly
 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.


Detailed Description

Water indicator.

Displays current water reserves of Firefly


Constructor & Destructor Documentation

HudWater::HudWater ( MVFirefly firefly,
GLfloat  width,
GLfloat  height 
)

Constructor.

HudWater::HudWater ( const HudWater source  ) 

Copy Constructor.

HudWater::~HudWater (  ) 

Destructor.


Member Function Documentation

void HudWater::setFirefly ( MVFirefly firefly  ) 

void HudWater::renderGl (  )  [virtual]

renders score to screen

Implements Object2d.

void HudWater::selectGl (  )  [virtual]

rednering for selection pass

Implements Object2d.

string HudWater::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object2d.

string HudWater::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Reimplemented from Object2d.

enum classId HudWater::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object2d.


Member Data Documentation

Firefly to observe.

Texture to use in the status bar.

Texture to underlay an empty status bar with.

GLfloat HudWater::width [private]

Bar width.

GLfloat HudWater::height [private]

Bar height.


The documentation for this class was generated from the following files:

Generated on Mon Jul 7 13:30:34 2008 for Firefly by  doxygen 1.5.6