Package com.prineside.tdi2
Class BuffProcessor<T extends Buff>
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.BuffProcessor<T>
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,ScheduledUpdater.Updatable
- Direct Known Subclasses:
ArmorBuffProcessor,BlizzardBuffProcessor,BonusCoinsBuffProcessor,BonusXpBuffProcessor,BurnBuffProcessor,ChainReactionBuffProcessor,DeathExplosionBuffProcessor,FreezingBuffProcessor,PoisonBuffProcessor,RegenerationBuffProcessor,SnowballBuffProcessor,StunBuffProcessor,ThrowBackBuffProcessor
public abstract class BuffProcessor<T extends Buff>
extends Registrable
implements ScheduledUpdater.Updatable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatПолучить минимальное время между вызовами update()voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidremoveAllBuffs(Enemy enemy, BuffType buffType) voidremoveBuff(Enemy enemy, BuffType buffType, int index) САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSEvoidremoveBuff(Enemy enemy, T buff) 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
-
Field Details
-
listeners
-
-
Constructor Details
-
BuffProcessor
public BuffProcessor()
-
-
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:
- интервал в секундах
-
getBuffCountStatistic
-
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
-
addBuff
- Returns:
- true, если добавлено САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSE
-
removeBuff
САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSE -
removeBuff
-
removeAllBuffs
-