Class GameState


  • public class GameState
    extends java.lang.Object
    Represents a snapshot of the game state at a specific point in time. Used for implementing time travel functionality (prev/next tick).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<java.awt.Point> npcPositions
      The positions of all NPCs at this state
      java.util.List<java.awt.Point> playerPath
      The player's current path at this state
      int playerPathIndex
      The player's path index at this state
      java.awt.Point playerPosition
      The player's position at this state
      int tick
      The tick number when this state was captured
    • Constructor Summary

      Constructors 
      Constructor Description
      GameState()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • tick

        public final int tick
        The tick number when this state was captured
      • playerPosition

        public final java.awt.Point playerPosition
        The player's position at this state
      • playerPath

        public final java.util.List<java.awt.Point> playerPath
        The player's current path at this state
      • playerPathIndex

        public final int playerPathIndex
        The player's path index at this state
      • npcPositions

        public final java.util.List<java.awt.Point> npcPositions
        The positions of all NPCs at this state
    • Constructor Detail

      • GameState

        public GameState()