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 classstatic final classNested 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 TypeMethodDescriptionbooleanaddBuff(Enemy enemy, BonusXpBuff buff) voidvoidsetRegistered(GameSystemProvider systemProvider) Mark this object as registered in the game state and give it a reference to the game state.voidRemove the reference to the game state and mark this object as not registered.voidMethods inherited from class com.prineside.tdi2.BuffProcessor
isDebuff, removeAllBuffs, removeBuff, removeBuffAtIndex, updateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Constructor Details
-
BonusXpBuffProcessor
public BonusXpBuffProcessor()
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classBuffProcessor<BonusXpBuff>
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classBuffProcessor<BonusXpBuff>
-
setRegistered
Description copied from class:RegistrableMark this object as registered in the game state and give it a reference to the game state.- Overrides:
setRegisteredin 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:RegistrableRemove the reference to the game state and mark this object as not registered.- Overrides:
setUnregisteredin classRegistrable
-
addBuff
- Overrides:
addBuffin classBuffProcessor<BonusXpBuff>- Returns:
- true if added, false otherwise (rejected by the buff manager)
-
getBuffCountStatistic
- Overrides:
getBuffCountStatisticin classBuffProcessor<BonusXpBuff>
-