Creates an pause object that inherits State and runs the pause state. More...
#include <Pause.h>


Public Member Functions | |
| PauseState (JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight, JAM_Audio *music) | |
| ~PauseState () | |
| bool | input () |
| void | update (float dt) |
| void | draw () |
Public Member Functions inherited from JAM_State | |
| JAM_State (JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight) | |
| virtual | ~JAM_State () |
Private Member Functions | |
| bool | windowsInput (SDL_Event &incomingEvent) |
| bool | androidInput (SDL_Event &incomingEvent) |
Private Attributes | |
| JAM_Texture * | background |
| JAM_Text * | info |
| JAM_Button * | button |
| JAM_Audio * | music |
Additional Inherited Members | |
Protected Attributes inherited from JAM_State | |
| JAM_StateManager * | stateManager |
| SDL_Renderer * | renderer |
| int | screenWidth |
| int | screenHeight |
Creates an pause object that inherits State and runs the pause state.
| PauseState::PauseState | ( | JAM_StateManager * | stateManager, |
| SDL_Renderer * | renderer, | ||
| int | screenWidth, | ||
| int | screenHeight, | ||
| JAM_Audio * | music | ||
| ) |
Constructs the PauseState object.
| stateManager | A pointer to the StateManager. |
| renderer | A pointer to the renderer. |
| screenWidth | The screen width. |
| screenHeight | The screen height. |

| PauseState::~PauseState | ( | ) |
Destructs the PauseState object.
|
private |
Handles the Android PauseState input.
| incomingEvent | A reference to the incoming SDL event. |


|
virtual |
|
virtual |
Handles the PauseState input.
Implements JAM_State.

|
virtual |
A function to update the pause state to allow the PauseState to run.
| dt | The delta time. |
Implements JAM_State.

|
private |
Handles the Windows PauseState input.
| incomingEvent | A reference to the incoming SDL event. |


|
private |
The background Texture.
|
private |
The info Button.
|
private |
The info Text.
|
private |
A pointer to the background music.
1.8.8