|
void | start (std::string levelName="") |
| Starts game, optionally loading a level. More...
|
|
void | handleInput () |
|
void | update () |
|
void | draw () |
|
bool | isOver () |
|
bool | willQuit () |
| If we'll quit the game right away.
|
|
bool | willReturnToMenu () |
| If we'll return to the main menu.
|
|
int | getDelay (int speed) |
| Returns how much time (millisseconds) we need to wait for a specific #speed.
|
|
void | pause (bool option) |
|
Definition at line 16 of file Game.hpp.
◆ start()
void Game::start |
( |
std::string |
levelName = "" | ) |
|
Starts game, optionally loading a level.
- Note
- This is not the path to the level file! It's merely a level name.
- See also
- BoardParser::load
- Note
- If no level name is specified, will default to an empty box.
Definition at line 39 of file Game.cpp.
◆ currentScore
Current score for this level.
It shall get increased with time and in the end we'll test to see if it can enter this level's high score list.
Definition at line 66 of file Game.hpp.
◆ isPaused
If the game is paused.
May show other Windows while paused.
Definition at line 90 of file Game.hpp.
◆ scores
All the current level's score.
It allows to read all the scores on this level, independent of game settings.
Definition at line 59 of file Game.hpp.
◆ showHelp
If it's showing the help screen.
Goes together with isPaused.
Definition at line 98 of file Game.hpp.
◆ showPauseMenu
If it's showing the pause menu.
Goes together with isPaused.
Definition at line 94 of file Game.hpp.
The documentation for this class was generated from the following files: