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
,InvulnerabilityBuffProcessor
,NoBonusSystemPointsBuffProcessor
,NoDamageBuffProcessor
,PoisonBuffProcessor
,RegenerationBuffProcessor
,SlippingBuffProcessor
,SnowballBuffProcessor
,StunBuffProcessor
,ThrowBackBuffProcessor
,VulnerabilityBuffProcessor
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 TypeMethodDescriptionboolean
protected boolean
addBuffRemoveExisting
(Enemy enemy, T buff) float
Получить минимальное время между вызовами update()boolean
isDebuff()
void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
removeAllBuffs
(Enemy enemy, BuffType buffType) void
removeBuff
(Enemy enemy, BuffType buffType, int index) САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSEvoid
removeBuff
(Enemy enemy, T buff) 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
-
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:
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:
- интервал в секундах
-
getBuffCountStatistic
-
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
-
isDebuff
public boolean isDebuff() -
addBuffRemoveExisting
-
addBuff
- Returns:
- true, если добавлено САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSE
-
removeBuff
САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSE -
removeBuff
-
removeAllBuffs
-