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()voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) intfinal voidscheduledUpdatableSetId(int id) voidscheduledUpdate(float deltaTime) voidwrite(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:
writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
writein classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
readin classRegistrable
-
getUpdateInterval
public float getUpdateInterval()Получить минимальное время между вызовами update()- Returns:
- интервал в секундах
-
scheduledUpdate
public void scheduledUpdate(float deltaTime) - Specified by:
scheduledUpdatein interfaceScheduledUpdater.Updatable
-
scheduledUpdatableSetId
public final void scheduledUpdatableSetId(int id) - Specified by:
scheduledUpdatableSetIdin interfaceScheduledUpdater.Updatable
-
scheduledUpdatableGetId
public int scheduledUpdatableGetId()- Specified by:
scheduledUpdatableGetIdin interfaceScheduledUpdater.Updatable
-