HudFood Class Reference

Food indicator. More...

#include <HudFood.h>

Inheritance diagram for HudFood:

Object2d ViewObject Object

List of all members.

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

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

Food indicator.

Displays current food reserves of Firefly


Constructor & Destructor Documentation

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

Constructor.

HudFood::HudFood ( const HudFood source  ) 

Copy Constructor.

HudFood::~HudFood (  ) 

Destructor.


Member Function Documentation

void HudFood::setFirefly ( MVFirefly firefly  ) 

void HudFood::renderGl (  )  [virtual]

renders score to screen

Implements Object2d.

void HudFood::selectGl (  )  [virtual]

rednering for selection pass

Implements Object2d.

string HudFood::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object2d.

string HudFood::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 HudFood::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 HudFood::width [private]

Bar width.

GLfloat HudFood::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