Package com.prineside.tdi2.systems
Class StateSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.StateSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,com.esotericsoftware.kryo.KryoSerializable
- Direct Known Subclasses:
GameStateSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
long
boolean
int
boolean
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
Вызывать для защиты от изменения геймплея не во время updatevoid
dispose()
Releases all resources of this object.int
boolean
void
pushAction
(Action action) void
pushAction
(Action action, int updateNumber) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
void
startFastForwarding
(int toUpdateNumber) void
void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, profileUpdate, setup, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
updateRequired
public boolean updateRequired -
replayRecord
-
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 interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
write
in classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
read
in classRegistrable
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
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
-
pushAction
-
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 interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classGameSystem
-
getCurrentUpdateActions
- Returns:
- массив действий или null
-