#include <CMenu.h>
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 | |
CScores * | m_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? | |
CMosaic * | m_pMosaic |
Mosaic object used for the animated mosaic background of the menu screen. |
CMenu::CMenu | ( | void | ) |
CMenu::~CMenu | ( | void | ) | [virtual] |
void CMenu::StartMenuMode | ( | EMenuMode | MenuMode | ) | [private] |
void CMenu::FinishMenuMode | ( | void | ) | [private] |
void CMenu::SetDisplay | ( | CDisplay * | pDisplay | ) | [inline, virtual] |
Set link to the display object to use.
Reimplemented from CModeScreen.
void CMenu::SetInput | ( | CInput * | pInput | ) | [inline, virtual] |
Set link to the input object to use.
Reimplemented from CModeScreen.
void CMenu::SetTimer | ( | CTimer * | pTimer | ) | [inline, virtual] |
Set link to the timer object to use.
Reimplemented from CModeScreen.
void CMenu::SetSound | ( | CSound * | pSound | ) | [inline, virtual] |
Set link to the sound object to use.
Reimplemented from CModeScreen.
void CMenu::SetOptions | ( | COptions * | pOptions | ) | [inline, virtual] |
Set link to the options object to use.
Reimplemented from CModeScreen.
void CMenu::SetScores | ( | CScores * | pScores | ) | [inline] |
Set link to the scores object to use.
void CMenu::Create | ( | void | ) | [virtual] |
void CMenu::Destroy | ( | void | ) | [virtual] |
void CMenu::OpenInput | ( | void | ) | [virtual] |
Get access to the input this object needs.
Implements CModeScreen.
void CMenu::CloseInput | ( | void | ) | [virtual] |
Release access to the input this object needs.
Implements CModeScreen.
EGameMode CMenu::Update | ( | void | ) | [virtual] |
Update the object and return what game mode should be set.
Implements CModeScreen.
void CMenu::Display | ( | void | ) | [virtual] |
void CMenu::SetMenuMode | ( | EMenuMode | MenuMode | ) |
Set the current menu mode.
CScores* CMenu::m_pScores [private] |
Link to the scores object to use.
CFont CMenu::m_Font [private] |
Font object.
EMenuMode CMenu::m_MenuMode [private] |
Current menu mode (= current menu screen).
CMenuBomber CMenu::m_MenuBomber [private] |
Menu screen object corresponding to MENUMODE_BOMBER.
CMenuInput CMenu::m_MenuInput [private] |
Menu screen object corresponding to MENUMODE_INPUT.
CMenuMatch CMenu::m_MenuMatch [private] |
Menu screen object corresponding to MENUMODE_MATCH.
CMenuLevel CMenu::m_MenuLevel [private] |
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?
CMosaic* CMenu::m_pMosaic [private] |
Mosaic object used for the animated mosaic background of the menu screen.