Class BonusCoinsBuffProcessor
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.BuffProcessor<BonusCoinsBuff>
com.prineside.tdi2.buffs.processors.BonusCoinsBuffProcessor
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesNested 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, BonusCoinsBuff 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
-
BonusCoinsBuffProcessor
public BonusCoinsBuffProcessor()
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classBuffProcessor<BonusCoinsBuff>
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classBuffProcessor<BonusCoinsBuff>
-
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<BonusCoinsBuff>- Returns:
- true if added, false otherwise (rejected by the buff manager)
-
getBuffCountStatistic
- Overrides:
getBuffCountStatisticin classBuffProcessor<BonusCoinsBuff>
-