Class StateSystem

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.KryoSerializable
Direct Known Subclasses:
GameStateSystem

public class StateSystem extends GameSystem
  • Field Details

    • updateRequired

      public boolean updateRequired
    • replayRecord

      public ReplayManager.ReplayRecord replayRecord
    • duplicateActionsTo

      public StateSystem duplicateActionsTo
    • inUpdateStage

      public boolean inUpdateStage
    • updateNumber

      public int updateNumber
    • replayMode

      public boolean replayMode
    • replayFrameCount

      public long replayFrameCount
  • Constructor Details

    • StateSystem

      public StateSystem()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      write in class Registrable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      read in class Registrable
    • affectsGameState

      public boolean affectsGameState()
      Specified by:
      affectsGameState in class GameSystem
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in class GameSystem
    • isFastForwarding

      public boolean isFastForwarding()
    • getFastForwardUpdateNumber

      public int getFastForwardUpdateNumber()
    • startFastForwarding

      public void startFastForwarding(int toUpdateNumber)
    • stopFastForwarding

      public void stopFastForwarding()
    • checkGameplayUpdateAllowed

      public void checkGameplayUpdateAllowed()
      Вызывать для защиты от изменения геймплея не во время update
    • canSkipMediaUpdate

      public boolean canSkipMediaUpdate()
    • pushAction

      public void pushAction(Action action)
    • pushAction

      public void pushAction(Action action, int updateNumber)
    • requireUpdate

      public void requireUpdate()
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class GameSystem
    • getCurrentUpdateActions

      public StateSystem.ActionsArray getCurrentUpdateActions()
      Returns:
      массив действий или null