Sokoban
|
Structure representing Sokoban game state. More...
#include <State.h>
Public Member Functions | |
GameState () | |
Constructor. More... | |
Public Attributes | |
int | sokoban_x |
int | sokoban_y |
int | barrels_on_target |
std::vector< std::vector< int > > | barrel_grid |
The grid which for every coordinate determines if there is a barrel. More... | |
std::vector< Barrel > | list_of_barrels |
std::string | hash |
Structure representing Sokoban game state.
|
inline |
Constructor.
Sets default values for variables.
std::vector<std::vector<int> > GameState::barrel_grid |
The grid which for every coordinate determines if there is a barrel.
The values of grid may be 0 (no barrel) or <= 1 (index of barrel in the list of barrels + 1).
int GameState::barrels_on_target |
Number of barrels which lies on target.
std::string GameState::hash |
Hash for this game state - for backtracking.
std::vector<Barrel> GameState::list_of_barrels |
List of barrels which are on map.
int GameState::sokoban_x |
Horizontal position of Sokoban.
int GameState::sokoban_y |
Vertical position of Sokoban.