Package com.prineside.tdi2.components
Class PowerBonuses
java.lang.Object
com.prineside.tdi2.components.PowerBonuses
- All Implemented Interfaces:
KryoSerializable
Applied to towers
Lists all the additional PWR sources (Power modifier / Basic ult)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOrReplaceBonus(int fromEntity, int sourceId, float delta) getBonuses(int fromEntity) floatgetEffects(int entityId) booleanhasBonuses(int fromEntity) booleanhasBonuses(int fromEntity, int sourceId) voidbooleanremoveBonus(int fromEntity) booleanremoveBonus(int fromEntity, int sourceId) void
-
Field Details
-
SOURCE_BASIC_SPECIAL_ABILITY
public static final int SOURCE_BASIC_SPECIAL_ABILITY- See Also:
-
-
Constructor Details
-
PowerBonuses
public PowerBonuses()
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable
-
read
- Specified by:
readin interfaceKryoSerializable
-
getEffects
-
getBonuses
-
hasBonuses
public boolean hasBonuses(int fromEntity) -
hasBonuses
public boolean hasBonuses(int fromEntity, int sourceId) -
removeBonus
public boolean removeBonus(int fromEntity) -
removeBonus
public boolean removeBonus(int fromEntity, int sourceId) -
addOrReplaceBonus
public boolean addOrReplaceBonus(int fromEntity, int sourceId, float delta) -
getBonusesSum
public float getBonusesSum()
-