fix: make GameState accessible for ai
This commit is contained in:
parent
7fffe2efbb
commit
1dabd1d25d
@ -119,6 +119,10 @@ public class GameInstance {
|
|||||||
manager.applyEvent(gameStateEvent);
|
manager.applyEvent(gameStateEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GameState getGameStateUnsafe() {
|
||||||
|
return _state;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return _state.toString();
|
return _state.toString();
|
||||||
|
@ -14,7 +14,7 @@ import java.util.Arrays;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
/** Represents the state of a game instance. */
|
/** Represents the state of a game instance. */
|
||||||
class GameState {
|
public class GameState {
|
||||||
/** The size of the map */
|
/** The size of the map */
|
||||||
public final IntVector2 mapSize;
|
public final IntVector2 mapSize;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user