- All Known Implementing Classes:
UsableItem
public interface Usable
Usable interface.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the additional attack value.intGet the additional defence value.intgetHp()Get the additional hp value.voidsetAdditionalAttack(int atk) Set additional attack value.voidsetAdditionalDefence(int def) Set additional defence value.voidsetAdditionalHp(int hp) Set additional hp value.
-
Method Details
-
setAdditionalAttack
void setAdditionalAttack(int atk) Set additional attack value. This value will be added to the current attack value of the player.- Parameters:
atk- Additional attack value.
-
setAdditionalDefence
void setAdditionalDefence(int def) Set additional defence value. This value will be added to the current defence value of the player.- Parameters:
def- Additional defence value.
-
setAdditionalHp
void setAdditionalHp(int hp) Set additional hp value. This value will be added to the current hp value of the player.- Parameters:
hp- Additional hp value.
-
getAttack
int getAttack()Get the additional attack value.- Returns:
- additional attack value.
-
getDefence
int getDefence()Get the additional defence value.- Returns:
- additional defence value.
-
getHp
int getHp()Get the additional hp value.- Returns:
- additional hp value.
-