Class BuffItem
java.lang.Object
model.item.Item
model.item.BuffItem
- All Implemented Interfaces:
Applicable
Increases the user's attack power. The effect is removed after the battle ends (reset).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIncreases the target entity's attack power.intget Attack bonus to apply.Returns a description of the effect for display in the UI.
-
Field Details
-
attackBonus
private final int attackBonusAttack bonus to apply.
-
-
Constructor Details
-
BuffItem
public BuffItem(int attackBonus) create BuffItem- Parameters:
attackBonus- Attack bonus to apply.
-
-
Method Details
-
apply
Increases the target entity's attack power.- Specified by:
applyin interfaceApplicable- Specified by:
applyin classItem- Parameters:
target- Entity to buff
-
getEffectDescription
Returns a description of the effect for display in the UI.- Specified by:
getEffectDescriptionin interfaceApplicable- Specified by:
getEffectDescriptionin classItem- Returns:
- Effect description text
-
getAttackBonus
public int getAttackBonus()get Attack bonus to apply.- Returns:
- attackBonus
-