Derived class of State class with visibility mode public that provides a state to instuct the players about basic controls of game.
More...
#include <InstructionsState.hpp>
Derived class of State class with visibility mode public that provides a state to instuct the players about basic controls of game.
◆ InstructionsState()
HeadBall::InstructionsState::InstructionsState |
( |
GameDataRef |
data | ) |
|
Construct a new Instructions State object.
- Parameters
-
◆ animate()
virtual void HeadBall::State::animate |
( |
| ) |
|
|
inlinevirtualinherited |
Vitrual function for performing animations.
◆ displayInstructions()
std::string HeadBall::InstructionsState::displayInstructions |
( |
| ) |
|
Takes instruction to be displayed in the window and returns it.
- Returns
- std::string returns the instructions
◆ draw()
void HeadBall::InstructionsState::draw |
( |
| ) |
|
|
virtual |
◆ handleInput()
void HeadBall::InstructionsState::handleInput |
( |
| ) |
|
|
virtual |
◆ init()
void HeadBall::InstructionsState::init |
( |
| ) |
|
|
virtual |
◆ pause()
virtual void HeadBall::State::pause |
( |
| ) |
|
|
inlinevirtualinherited |
◆ resume()
virtual void HeadBall::State::resume |
( |
| ) |
|
|
inlinevirtualinherited |
◆ update()
void HeadBall::InstructionsState::update |
( |
| ) |
|
|
virtual |
◆ _backBtn
sf::Sprite HeadBall::InstructionsState::_backBtn |
|
private |
◆ _background
sf::Sprite HeadBall::InstructionsState::_background |
|
private |
Background sprite to draw on the screen
◆ _btnClickSfx
sf::Sound HeadBall::InstructionsState::_btnClickSfx |
|
private |
Sound effect for button click.
◆ _data
The shared pointer for all the game data.
◆ _exitBtn
sf::Sprite HeadBall::InstructionsState::_exitBtn |
|
private |
Button to exit from the game.
◆ _instructionsText
sf::Text HeadBall::InstructionsState::_instructionsText |
|
private |
Text to display instructions
information.
◆ ss
std::stringstream HeadBall::InstructionsState::ss |
|
private |
String stream to update the controls as in definitions.hpp.
The documentation for this class was generated from the following files: