Class RegenerationBuffProcessor
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.BuffProcessor<RegenerationBuff>
com.prineside.tdi2.buffs.processors.RegenerationBuffProcessor
- All Implemented Interfaces:
KryoSerializable,ScheduledUpdater.Updatable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from class com.prineside.tdi2.BuffProcessor
BuffProcessor.BuffProcessorListener -
Field Summary
Fields inherited from class com.prineside.tdi2.BuffProcessor
listenersFields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddBuff(Enemy enemy, RegenerationBuff buff) booleanaddBuff(Enemy enemy, RegenerationBuff buff, boolean stackFromSameSourceAndRemoveOthers) floatПолучить минимальное время между вызовами update()booleanisDebuff()voidvoidscheduledUpdate(float deltaTime) voidvoidvoidMethods inherited from class com.prineside.tdi2.BuffProcessor
removeAllBuffs, removeBuff, removeBuff, scheduledUpdatableGetId, scheduledUpdatableSetIdMethods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Constructor Details
-
RegenerationBuffProcessor
public RegenerationBuffProcessor()
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classBuffProcessor<RegenerationBuff>
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classBuffProcessor<RegenerationBuff>
-
isDebuff
public boolean isDebuff()- Overrides:
isDebuffin classBuffProcessor<RegenerationBuff>
-
setRegistered
- Overrides:
setRegisteredin classRegistrable
-
setUnregistered
public void setUnregistered()- Overrides:
setUnregisteredin classRegistrable
-
getUpdateInterval
public float getUpdateInterval()Description copied from class:BuffProcessorПолучить минимальное время между вызовами update()- Overrides:
getUpdateIntervalin classBuffProcessor<RegenerationBuff>- Returns:
- интервал в секундах
-
getBuffCountStatistic
- Overrides:
getBuffCountStatisticin classBuffProcessor<RegenerationBuff>
-
addBuff
- Overrides:
addBuffin classBuffProcessor<RegenerationBuff>- Returns:
- true, если добавлено САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSE
-
addBuff
public boolean addBuff(Enemy enemy, RegenerationBuff buff, boolean stackFromSameSourceAndRemoveOthers) -
scheduledUpdate
public void scheduledUpdate(float deltaTime) - Specified by:
scheduledUpdatein interfaceScheduledUpdater.Updatable- Overrides:
scheduledUpdatein classBuffProcessor<RegenerationBuff>
-