Sokoban
Public Member Functions | Public Attributes | List of all members
TwoPlayerGameState Struct Reference

Structure representing Sokoban game state for two player map. More...

#include <State.h>

Inheritance diagram for TwoPlayerGameState:
GameState

Public Member Functions

 TwoPlayerGameState ()
 Constructor. More...
 
- Public Member Functions inherited from GameState
 GameState ()
 Constructor. More...
 

Public Attributes

int sokoban2_x
 
int sokoban2_y
 
- Public Attributes inherited from GameState
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< Barrellist_of_barrels
 
std::string hash
 

Detailed Description

Structure representing Sokoban game state for two player map.

Constructor & Destructor Documentation

◆ TwoPlayerGameState()

TwoPlayerGameState::TwoPlayerGameState ( )
inline

Constructor.

Sets default values for variables

Member Data Documentation

◆ sokoban2_x

int TwoPlayerGameState::sokoban2_x

Horizontal position of the second Sokoban.

◆ sokoban2_y

int TwoPlayerGameState::sokoban2_y

Vertical position o the secondf Sokoban.


The documentation for this struct was generated from the following file: