UI::PauseMenu Class Reference

#include <PauseMenu.h>

Inheritance diagram for UI::PauseMenu:

UI::Menu List of all members.

Public Types

 No action confirmed yet.
 Continue the game.
 Quit the game.
enum  Response { R_NONE, R_CONTINUE, R_QUIT }
 User's choice on the pause menu. More...

Public Member Functions

 PauseMenu ()
void set_response (Response response)
 Set the response to the given action.
Response get_response () const
 Return the user's choosen action.
void reset ()
 Reset the response so the menu can be used again.

Protected Attributes

ContinueButton m_continue_item
QuitButton m_quit_item
Response m_response

Detailed Description

Definition at line 45 of file PauseMenu.h.

Member Enumeration Documentation

enum UI::PauseMenu::Response

User's choice on the pause menu.

R_NONE  No action confirmed yet.
R_CONTINUE  Continue the game.
R_QUIT  Quit the game.

Definition at line 50 of file PauseMenu.h.

Constructor & Destructor Documentation

UI::PauseMenu::PauseMenu (  ) 

Definition at line 40 of file PauseMenu.cpp.

Member Function Documentation

PauseMenu::Response UI::PauseMenu::get_response (  )  const

Return the user's choosen action.

Definition at line 55 of file PauseMenu.cpp.

void UI::PauseMenu::reset (  ) 

Reset the response so the menu can be used again.

Definition at line 60 of file PauseMenu.cpp.

void UI::PauseMenu::set_response ( Response  response  ) 

Set the response to the given action.

Definition at line 49 of file PauseMenu.cpp.

Member Data Documentation

ContinueButton UI::PauseMenu::m_continue_item [protected]

Definition at line 65 of file PauseMenu.h.

QuitButton UI::PauseMenu::m_quit_item [protected]

Definition at line 66 of file PauseMenu.h.

Response UI::PauseMenu::m_response [protected]

Definition at line 67 of file PauseMenu.h.

The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.