Class GameFieldMemento
java.lang.Object
de.tum.cit.fop.maze.game_saves.mementos.GameFieldMemento
- All Implemented Interfaces:
Memento
Memento storing game field state including tiles, objects, and player start position.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGameFieldMemento(int width, int height, String[] grid, List<GameObjectMemento> gameObjects, float playerStartPosX, float playerStartPosY) -
Method Summary
-
Field Details
-
width
public int width -
height
public int height -
grid
-
gameObjects
-
playerStartPosX
public float playerStartPosX -
playerStartPosY
public float playerStartPosY
-
-
Constructor Details
-
GameFieldMemento
public GameFieldMemento() -
GameFieldMemento
public GameFieldMemento(int width, int height, String[] grid, List<GameObjectMemento> gameObjects, float playerStartPosX, float playerStartPosY)
-