fix: make GameState accessible for ai

This commit is contained in:
punchready 2021-07-01 17:25:14 +02:00
parent 7fffe2efbb
commit 1dabd1d25d
2 changed files with 5 additions and 1 deletions

View File

@ -119,6 +119,10 @@ public class GameInstance {
manager.applyEvent(gameStateEvent);
}
public GameState getGameStateUnsafe() {
return _state;
}
@Override
public String toString() {
return _state.toString();

View File

@ -14,7 +14,7 @@ import java.util.Arrays;
import java.util.HashSet;
/** Represents the state of a game instance. */
class GameState {
public class GameState {
/** The size of the map */
public final IntVector2 mapSize;