Package com.kraken.api.sim.model
Class GameState
- java.lang.Object
-
- com.kraken.api.sim.model.GameState
-
public class GameState extends java.lang.ObjectRepresents 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>npcPositionsThe positions of all NPCs at this statejava.util.List<java.awt.Point>playerPathThe player's current path at this stateintplayerPathIndexThe player's path index at this statejava.awt.PointplayerPositionThe player's position at this stateinttickThe tick number when this state was captured
-
Constructor Summary
Constructors Constructor Description GameState()
-
-
-
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
-
-