Public Member Functions | Protected Attributes

DifficultyMenu Class Reference

Difficulty menu class. More...

#include <DifficultyMenu.h>

Inheritance diagram for DifficultyMenu:
Menu

List of all members.

Public Member Functions

 DifficultyMenu ()
 ~DifficultyMenu () override
int Update ()
void Draw () override

Protected Attributes

CIw2DImage * m_background
 Background image.
CIw2DImage * m_easyButton
 Easy button image.
CIw2DImage * m_mediumButton
 Medium button image.
CIw2DImage * m_hardButton
 Hard button image.
CIwFVec2 m_backgroundPos
 Background image.
CIwFVec2 m_easyButtonPos
 Easy button position.
CIwFVec2 m_mediumButtonPos
 Medium button image position.
CIwFVec2 m_hardButtonPos
 Hard button image position.
CIwFVec2 m_buttonDimensions
 Button image dimensions.
bool m_easyHighlighted
 Is the easy button highlighted?
bool m_mediumHighlighted
 Is the medium button highlighted?
bool m_hardHighlighted
 Is the hard button highlighted?

Detailed Description

Difficulty menu class.

The game's "select difficulty" menu. Update returns an int representing the new difficulty if the user clicks a button.


Constructor & Destructor Documentation

DifficultyMenu::DifficultyMenu (  ) 

Constructor.

Create a new difficulty menu.

DifficultyMenu::~DifficultyMenu (  )  [override]

Destructor.

Destroy the menu and release all associated memory.


Member Function Documentation

void DifficultyMenu::Draw (  )  [override, virtual]

Draw.

Draw the menu and buttons.

Reimplemented from Menu.

int DifficultyMenu::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