Class BonusXpBuffProcessor
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.BuffProcessor<BonusXpBuff>
com.prineside.tdi2.buffs.processors.BonusXpBuffProcessor
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesModifier 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addBuff
(Enemy enemy, BonusXpBuff buff) void
void
setRegistered
(GameSystemProvider systemProvider) 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
Methods inherited from class com.prineside.tdi2.BuffProcessor
isDebuff, removeAllBuffs, removeBuff, removeBuffAtIndex, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Constructor Details
-
BonusXpBuffProcessor
public BonusXpBuffProcessor()
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classBuffProcessor<BonusXpBuff>
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classBuffProcessor<BonusXpBuff>
-
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:
systemProvider
- 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
-
addBuff
- Overrides:
addBuff
in classBuffProcessor<BonusXpBuff>
- Returns:
- true if added, false otherwise (rejected by the buff manager)
-
getBuffCountStatistic
- Overrides:
getBuffCountStatistic
in classBuffProcessor<BonusXpBuff>
-