|
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. More...
|
|
void | pause (bool option) |
|
Definition at line 16 of file Game.hpp.
int Game::getDelay |
( |
int |
speed | ) |
|
Returns how much time (millisseconds) we need to wait for a specific #speed.
Definition at line 327 of file Game.cpp.
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.
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.
If the game is paused.
May show other Windows while paused.
Definition at line 90 of file Game.hpp.
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.
If it's showing the help screen.
Goes together with isPaused.
Definition at line 98 of file Game.hpp.
If it's showing the pause menu.
Goes together with isPaused.
Definition at line 94 of file Game.hpp.
Timer that tells when to scroll the board, if this game setting is activated.
Definition at line 83 of file Game.hpp.
Timer that tells when to move the player, based on the current speed).
Definition at line 79 of file Game.hpp.
The documentation for this class was generated from the following files: