|
baba-is-auto
C++17 Baba Is You simulator
|
#include <Game.hpp>
Public Member Functions | |
| Game (std::string_view filename) | |
| void | Reset () |
| Resets map and rule data. | |
| Map & | GetMap () |
| const Map & | GetMap () const |
| RuleManager & | GetRuleManager () |
| PlayState | GetPlayState () const |
| ObjectType | GetPlayerIcon () const |
| void | MovePlayer (Direction dir) |
Game class.
This class represents game. A game is a structured form of Baba Is You.
|
explicit |
Constructs game with given mapFileName.
| filename | The file name to load a map. |
| Map & baba_is_auto::Game::GetMap | ( | ) |
Gets a map object.
| const Map & baba_is_auto::Game::GetMap | ( | ) | const |
Gets a map object.
| ObjectType baba_is_auto::Game::GetPlayerIcon | ( | ) | const |
Gets an icon type that represents player.
| PlayState baba_is_auto::Game::GetPlayState | ( | ) | const |
Gets the play state of the game.
| RuleManager & baba_is_auto::Game::GetRuleManager | ( | ) |
Gets a rule manager object.
| void baba_is_auto::Game::MovePlayer | ( | Direction | dir | ) |
Moves the icon that represents player.
| dir | The direction to move the player. |
| void baba_is_auto::Game::Reset | ( | ) |
Resets map and rule data.