Public Member Functions | Protected Attributes

PauseMenu Class Reference

Pause menu class. More...

#include <PauseMenu.h>

List of all members.

Public Member Functions

 PauseMenu ()
 ~PauseMenu ()
int Update ()
void Draw ()

Protected Attributes

CIwFVec2 m_position
 Position of the menu (top left corner).
CIw2DImage * m_background
 Background image for the menu.
CIw2DImage * m_quitButton
 Quit button image.
CIw2DImage * m_restartButton
 Restart button image.
CIw2DImage * m_resumeButton
 Resume button image.
CIwFVec2 m_quitButtonPosition
 Quit button position (top left corner).
CIwFVec2 m_restartButtonPosition
 Restart button position (top left corner).
CIwFVec2 m_resumeButtonPosition
 Resume button position (top left corner).
CIwFVec2 m_buttonDimensions
 Dimensions for the buttons on the menu.

Detailed Description

Pause menu class.

The game's pause menu. Update returns an int representing the new gamestate if the user clicks a button.


Constructor & Destructor Documentation

PauseMenu::PauseMenu (  ) 

Constructor.

Create a new pause menu.

PauseMenu::~PauseMenu (  ) 

Destructor.

Delete the menu.


Member Function Documentation

void PauseMenu::Draw (  ) 

Draw.

Render the menu.

int PauseMenu::Update (  ) 

Update.

Check for user input and return the new game state (if any).

Returns:
int new gamestate (if any).

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations