HudMenu Class Reference

In Game Menu. More...

#include <HudMenu.h>

Inheritance diagram for HudMenu:

Object2d EventListener ButtonListener ViewObject Object Object Object

List of all members.

Public Member Functions

 HudMenu (Game *game)
 Constructor.
 HudMenu (const HudMenu &source)
 Copy Constructor.
 ~HudMenu ()
 Destructor.
void renderGl ()
 The rendering function to be used with OpenGL.
void selectGl ()
 The selection mode rendering function for OpenGL.
void processEvent (SDL_Event &event)
 Method to handle events from SDL.
void clicked ()
 Close menu after click.
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

Gamegame
vector< Buttonbuttons
 List of buttons to draw.
GLfloat width
 menu's background width
GLfloat height
 menu's background height
Texture background
 background texture
bool visible
 visibility toggle


Detailed Description

In Game Menu.

Displays several Options


Constructor & Destructor Documentation

HudMenu::HudMenu ( Game game  ) 

Constructor.

Standard Constructor

HudMenu::HudMenu ( const HudMenu menu  ) 

Copy Constructor.

Copy Constructor

HudMenu::~HudMenu (  ) 

Destructor.

Destructor


Member Function Documentation

void HudMenu::renderGl (  )  [virtual]

The rendering function to be used with OpenGL.

Renders the menu using OpenGL

Implements Object2d.

void HudMenu::selectGl (  )  [virtual]

The selection mode rendering function for OpenGL.

Renders the menu for an OpenGL selection pass

Implements Object2d.

void HudMenu::processEvent ( SDL_Event &  event  )  [virtual]

Method to handle events from SDL.

Parameters:
event The SDL Event to be evaluated

Implements EventListener.

void HudMenu::clicked (  )  [virtual]

Close menu after click.

Disables Menu after button click

Implements ButtonListener.

string HudMenu::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Implements ButtonListener.

string HudMenu::className (  )  const [virtual]

Returns the class name of the object.

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

Implements ButtonListener.

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

Returns the class id of the object.

Returns:
an id of the object's class

Implements ButtonListener.


Member Data Documentation

Game* HudMenu::game [private]

vector<Button> HudMenu::buttons [private]

List of buttons to draw.

GLfloat HudMenu::width [private]

menu's background width

GLfloat HudMenu::height [private]

menu's background height

background texture

bool HudMenu::visible [private]

visibility toggle


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