Class GameFieldMemento

java.lang.Object
de.tum.cit.fop.maze.game_saves.mementos.GameFieldMemento
All Implemented Interfaces:
Memento

public class GameFieldMemento extends Object implements Memento
Memento storing game field state including tiles, objects, and player start position.
  • Field Details

    • width

      public int width
    • height

      public int height
    • grid

      public String[] grid
    • gameObjects

      public List<GameObjectMemento> 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)