Pause menu class. More...
#include <PauseMenu.h>
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. | |
Pause menu class.
The game's pause menu. Update returns an int representing the new gamestate if the user clicks a button.
| PauseMenu::PauseMenu | ( | ) |
Constructor.
Create a new pause menu.
| PauseMenu::~PauseMenu | ( | ) |
Destructor.
Delete the menu.
| void PauseMenu::Draw | ( | ) |
Draw.
Render the menu.
| int PauseMenu::Update | ( | ) |
Update.
Check for user input and return the new game state (if any).
1.7.1