Difficulty menu class. More...
#include <DifficultyMenu.h>
  
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?  | |
Difficulty menu class.
The game's "select difficulty" menu. Update returns an int representing the new difficulty if the user clicks a button.
| DifficultyMenu::DifficultyMenu | ( | ) | 
Constructor.
Create a new difficulty menu.
| DifficultyMenu::~DifficultyMenu | ( | ) |  [override] | 
        
Destructor.
Destroy the menu and release all associated memory.
| void DifficultyMenu::Draw | ( | ) |  [override, virtual] | 
        
| int DifficultyMenu::Update | ( | ) | 
Update.
Check for user input and return the new game state (if any).
 1.7.1