Class PlayerMemento

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

public class PlayerMemento extends Object implements Memento
Memento storing complete player state including health, abilities, keys, and position.
  • Field Details

    • currentHealth

      public int currentHealth
    • maxHealth

      public int maxHealth
    • xp

      public int xp
    • canDash

      public boolean canDash
    • canInvis

      public boolean canInvis
    • hasKeys

      public boolean hasKeys
    • currentKeys

      public int currentKeys
    • requiredKeys

      public int requiredKeys
    • kills

      public int kills
    • positionX

      public float positionX
    • positionY

      public float positionY
    • velocityX

      public float velocityX
    • velocityY

      public float velocityY
    • speed

      public float speed
    • animationType

      public String animationType
  • Constructor Details

    • PlayerMemento

      public PlayerMemento()
    • PlayerMemento

      public PlayerMemento(int currentHealth, int maxHealth, int xp, boolean canDash, boolean canInvis, boolean hasKeys, int currentKeys, int requiredKeys, int kills, float positionX, float positionY, float velocityX, float velocityY, float speed, String animationType)