- All Known Implementing Classes:
UsableItem
public interface Usable
Usable interface.
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the additional attack value.int
Get the additional defence value.int
getHp()
Get the additional hp value.void
setAdditionalAttack
(int atk) Set additional attack value.void
setAdditionalDefence
(int def) Set additional defence value.void
setAdditionalHp
(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.
-