#include <LevelState.h>
|
| | LevelState (passkey, StateManager &context) |
| | This State initiates a Pacman level by setting up a logic::World and rendering the game views.
|
| void | handleInput (const sf::Event::KeyEvent &keyPressed) override |
| | Passes concrete Moves to the World instance & handles pausing.
|
| void | resized () override |
| | Will resize the Game Views.
|
| void | update (double dt) override |
| | Updates ScoreSystem and World.
|
| void | render () override |
| | Renders all Views associated with this level. Does this on a layer basis.
|
| virtual | ~State ()=default |
| virtual | ~Observer ()=default |
◆ LevelState()
This State initiates a Pacman level by setting up a logic::World and rendering the game views.
- Warning
- This constructor uses the passkey pattern as you are not suposed to directly interact with it. Use LevelState::create instead.
- Parameters
-
◆ create()
Creates a LevelState which initiates a Pacman Level by setting up a logic::Word and rendering the game views.
- Parameters
-
- Returns
- LevelState std::shared_ptr
◆ handleInput()
| void LevelState::handleInput |
( |
const sf::Event::KeyEvent & | keyPressed | ) |
|
|
overridevirtual |
Passes concrete Moves to the World instance & handles pausing.
- Parameters
-
Implements State.
◆ render()
| void LevelState::render |
( |
| ) |
|
|
overridevirtual |
Renders all Views associated with this level. Does this on a layer basis.
Implements State.
◆ resized()
| void LevelState::resized |
( |
| ) |
|
|
overridevirtual |
Will resize the Game Views.
Implements State.
◆ update()
| void LevelState::update |
( |
double | dt | ) |
|
|
overridevirtual |
Updates ScoreSystem and World.
- Parameters
-
Implements State.
The documentation for this class was generated from the following files: