CMenu Class Reference

#include <CMenu.h>

Inheritance diagram for CMenu:

Inheritance graph
[legend]
Collaboration diagram for CMenu:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CMenu (void)
virtual ~CMenu (void)
void SetDisplay (CDisplay *pDisplay)
 Set link to the display object to use.
void SetInput (CInput *pInput)
 Set link to the input object to use.
void SetTimer (CTimer *pTimer)
 Set link to the timer object to use.
void SetSound (CSound *pSound)
 Set link to the sound object to use.
void SetOptions (COptions *pOptions)
 Set link to the options object to use.
void SetScores (CScores *pScores)
 Set link to the scores object to use.
void Create (void)
 Initialize the object.
void Destroy (void)
 Uninitialize the object.
void OpenInput (void)
 Get access to the input this object needs.
void CloseInput (void)
 Release access to the input this object needs.
EGameMode Update (void)
 Update the object and return what game mode should be set.
void Display (void)
 Display on the screen.
void SetMenuMode (EMenuMode MenuMode)
 Set the current menu mode.

Private Member Functions

void StartMenuMode (EMenuMode MenuMode)
void FinishMenuMode (void)

Private Attributes

CScoresm_pScores
 Link to the scores object to use.
CFont m_Font
 Font object.
EMenuMode m_MenuMode
 Current menu mode (= current menu screen).
CMenuBomber m_MenuBomber
 Menu screen object corresponding to MENUMODE_BOMBER.
CMenuInput m_MenuInput
 Menu screen object corresponding to MENUMODE_INPUT.
CMenuMatch m_MenuMatch
 Menu screen object corresponding to MENUMODE_MATCH.
CMenuLevel m_MenuLevel
 Menu screen object corresponding to MENUMODE_LEVEL.
float m_GameModeTime
 Time (in seconds) that elapsed since this game mode has started.
bool m_HaveToExit
 Do we have to exit this game mode?
EGameMode m_ExitGameMode
 Game mode to ask for when exiting (after black screen).
float m_ExitGameModeTime
 Game mode time when we realized we have to exit (used for blackscreen).
bool m_SongStarted
 Did we start playing the song after the black screen?
CMosaicm_pMosaic
 Mosaic object used for the animated mosaic background of the menu screen.


Constructor & Destructor Documentation

CMenu::CMenu ( void   ) 

Here is the call graph for this function:

CMenu::~CMenu ( void   )  [virtual]


Member Function Documentation

void CMenu::StartMenuMode ( EMenuMode  MenuMode  )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

void CMenu::FinishMenuMode ( void   )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

void CMenu::SetDisplay ( CDisplay pDisplay  )  [inline, virtual]

Set link to the display object to use.

Reimplemented from CModeScreen.

Here is the call graph for this function:

Here is the caller graph for this function:

void CMenu::SetInput ( CInput pInput  )  [inline, virtual]

Set link to the input object to use.

Reimplemented from CModeScreen.

Here is the call graph for this function:

Here is the caller graph for this function:

void CMenu::SetTimer ( CTimer pTimer  )  [inline, virtual]

Set link to the timer object to use.

Reimplemented from CModeScreen.

Here is the call graph for this function:

Here is the caller graph for this function:

void CMenu::SetSound ( CSound pSound  )  [inline, virtual]

Set link to the sound object to use.

Reimplemented from CModeScreen.

Here is the call graph for this function:

Here is the caller graph for this function:

void CMenu::SetOptions ( COptions pOptions  )  [inline, virtual]

Set link to the options object to use.

Reimplemented from CModeScreen.

Here is the call graph for this function:

Here is the caller graph for this function:

void CMenu::SetScores ( CScores pScores  )  [inline]

Set link to the scores object to use.

Here is the caller graph for this function:

void CMenu::Create ( void   )  [virtual]

Initialize the object.

Reimplemented from CModeScreen.

Here is the call graph for this function:

void CMenu::Destroy ( void   )  [virtual]

Uninitialize the object.

Reimplemented from CModeScreen.

Here is the call graph for this function:

void CMenu::OpenInput ( void   )  [virtual]

Get access to the input this object needs.

Implements CModeScreen.

Here is the call graph for this function:

void CMenu::CloseInput ( void   )  [virtual]

Release access to the input this object needs.

Implements CModeScreen.

Here is the call graph for this function:

EGameMode CMenu::Update ( void   )  [virtual]

Update the object and return what game mode should be set.

Implements CModeScreen.

Here is the call graph for this function:

void CMenu::Display ( void   )  [virtual]

Display on the screen.

Implements CModeScreen.

Here is the call graph for this function:

void CMenu::SetMenuMode ( EMenuMode  MenuMode  ) 

Set the current menu mode.

Here is the call graph for this function:


Member Data Documentation

Link to the scores object to use.

CFont CMenu::m_Font [private]

Font object.

Current menu mode (= current menu screen).

Menu screen object corresponding to MENUMODE_BOMBER.

Menu screen object corresponding to MENUMODE_INPUT.

Menu screen object corresponding to MENUMODE_MATCH.

Menu screen object corresponding to MENUMODE_LEVEL.

float CMenu::m_GameModeTime [private]

Time (in seconds) that elapsed since this game mode has started.

bool CMenu::m_HaveToExit [private]

Do we have to exit this game mode?

EGameMode CMenu::m_ExitGameMode [private]

Game mode to ask for when exiting (after black screen).

float CMenu::m_ExitGameModeTime [private]

Game mode time when we realized we have to exit (used for blackscreen).

bool CMenu::m_SongStarted [private]

Did we start playing the song after the black screen?

Mosaic object used for the animated mosaic background of the menu screen.


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

Generated on Sat Oct 18 12:26:47 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo