Package com.prineside.tdi2
Class ModifierProcessor<T extends Modifier>
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.ModifierProcessor<T>
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,ScheduledUpdater.Updatable
- Direct Known Subclasses:
BountyModifierProcessor
public abstract class ModifierProcessor<T extends Modifier>
extends Registrable
implements ScheduledUpdater.Updatable
-
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Получить минимальное время между вызовами update()void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) int
final void
scheduledUpdatableSetId
(int id) void
scheduledUpdate
(float deltaTime) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Constructor Details
-
ModifierProcessor
public ModifierProcessor()
-
-
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
-
getUpdateInterval
public float getUpdateInterval()Получить минимальное время между вызовами update()- Returns:
- интервал в секундах
-
scheduledUpdate
public void scheduledUpdate(float deltaTime) - Specified by:
scheduledUpdate
in interfaceScheduledUpdater.Updatable
-
scheduledUpdatableSetId
public final void scheduledUpdatableSetId(int id) - Specified by:
scheduledUpdatableSetId
in interfaceScheduledUpdater.Updatable
-
scheduledUpdatableGetId
public int scheduledUpdatableGetId()- Specified by:
scheduledUpdatableGetId
in interfaceScheduledUpdater.Updatable
-