Class for the screen to be displayed when game is paused.
More...
#include <PausedState.hpp>
Class for the screen to be displayed when game is paused.
◆ PausedState()
Construct a new Paused State object.
- Parameters
-
data | Shared pointer for game data |
◆ animate()
virtual void HeadBall::State::animate |
( |
| ) |
|
|
inlinevirtualinherited |
Vitrual function for performing animations.
◆ draw()
void HeadBall::PausedState::draw |
( |
| ) |
|
|
virtual |
◆ handleInput()
void HeadBall::PausedState::handleInput |
( |
| ) |
|
|
virtual |
◆ init()
void HeadBall::PausedState::init |
( |
| ) |
|
|
virtual |
◆ pause()
virtual void HeadBall::State::pause |
( |
| ) |
|
|
inlinevirtualinherited |
◆ resume()
virtual void HeadBall::State::resume |
( |
| ) |
|
|
inlinevirtualinherited |
◆ update()
void HeadBall::PausedState::update |
( |
| ) |
|
|
virtual |
◆ _background
sf::Sprite HeadBall::PausedState::_background |
|
private |
Background sprite to draw on the screen.
◆ _btnClickSfx
sf::Sound HeadBall::PausedState::_btnClickSfx |
|
private |
Sound effect for button click.
◆ _data
Shared pointer of game data.
◆ _exitBtn
sf::Sprite HeadBall::PausedState::_exitBtn |
|
private |
Button to exit from the game.
◆ _instructionsBtn
sf::Sprite HeadBall::PausedState::_instructionsBtn |
|
private |
Button to go to instructions state.
◆ _resumeBtn
sf::Sprite HeadBall::PausedState::_resumeBtn |
|
private |
◆ _theme
sf::Music HeadBall::PausedState::_theme |
|
private |
The documentation for this class was generated from the following files: