HudInventory Class Reference

Displays what the firefly is carrying around. More...

#include <HudInventory.h>

Inheritance diagram for HudInventory:

Object2d ViewObject Object

List of all members.

Public Member Functions

 HudInventory (MVFirefly *firefly, GLfloat size, GLfloat border)
 Constructor.
 HudInventory (const HudInventory &source)
 Copy Constructor.
 ~HudInventory ()
 Destructor.
void setFirefly (MVFirefly *firefly)
void renderGl ()
 The rendering function to be used with OpenGL.
void selectGl ()
 The selection mode rendering function for OpenGL.
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
 The firefly to observe.
GLfloat size
 The height of the Inventory.
GLfloat border
 The bordersize of the Inventory.
Texture background
 Background Texture.


Detailed Description

Displays what the firefly is carrying around.

Shows an array of items collected by the player


Constructor & Destructor Documentation

HudInventory::HudInventory ( MVFirefly firefly,
GLfloat  size,
GLfloat  border 
)

Constructor.

Parameters:
firefly the bug whose inventory to display

HudInventory::HudInventory ( const HudInventory source  ) 

Copy Constructor.

Parameters:
source the object to be copied

HudInventory::~HudInventory (  ) 

Destructor.


Member Function Documentation

void HudInventory::setFirefly ( MVFirefly firefly  ) 

void HudInventory::renderGl (  )  [virtual]

The rendering function to be used with OpenGL.

Implements Object2d.

void HudInventory::selectGl (  )  [virtual]

The selection mode rendering function for OpenGL.

Not needed for a cursor

Implements Object2d.

string HudInventory::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object2d.

string HudInventory::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 HudInventory::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object2d.


Member Data Documentation

The firefly to observe.

GLfloat HudInventory::size [private]

The height of the Inventory.

GLfloat HudInventory::border [private]

The bordersize of the Inventory.

Background Texture.


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