Class RegenerationBuffProcessor
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.BuffProcessor<RegenerationBuff>
com.prineside.tdi2.buffs.processors.RegenerationBuffProcessor
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
Nested classes/interfaces inherited from class com.prineside.tdi2.BuffProcessor
BuffProcessor.BuffProcessorListener
-
Field Summary
Fields inherited from class com.prineside.tdi2.BuffProcessor
listeners
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addBuff
(Enemy enemy, RegenerationBuff buff) boolean
addBuffStackSameSourceRemoveOthers
(Enemy enemy, RegenerationBuff buff, boolean stackFromSameSourceAndRemoveOthers) boolean
isDebuff()
void
void
Mark this object as registered in the game state and give it a reference to the game state.void
Remove the reference to the game state and mark this object as not registered.void
update
(float deltaTime) void
Methods inherited from class com.prineside.tdi2.BuffProcessor
removeAllBuffs, removeBuff, removeBuffAtIndex
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Constructor Details
-
RegenerationBuffProcessor
public RegenerationBuffProcessor()
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classBuffProcessor<RegenerationBuff>
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classBuffProcessor<RegenerationBuff>
-
isDebuff
public boolean isDebuff()- Overrides:
isDebuff
in classBuffProcessor<RegenerationBuff>
-
setRegistered
Description copied from class:Registrable
Mark this object as registered in the game state and give it a reference to the game state.- Overrides:
setRegistered
in classRegistrable
- Parameters:
S
- game state to link this object to, will be set to the S field.
-
setUnregistered
public void setUnregistered()Description copied from class:Registrable
Remove the reference to the game state and mark this object as not registered.- Overrides:
setUnregistered
in classRegistrable
-
getBuffCountStatistic
- Overrides:
getBuffCountStatistic
in classBuffProcessor<RegenerationBuff>
-
addBuff
- Overrides:
addBuff
in classBuffProcessor<RegenerationBuff>
- Returns:
- true if added, false otherwise (rejected by the buff manager)
-
addBuffStackSameSourceRemoveOthers
public boolean addBuffStackSameSourceRemoveOthers(Enemy enemy, RegenerationBuff buff, boolean stackFromSameSourceAndRemoveOthers) -
update
public void update(float deltaTime) - Overrides:
update
in classBuffProcessor<RegenerationBuff>
-