Package com.mg105.entities
Class Move
java.lang.Object
com.mg105.entities.Move
Move is a class which contains the combat properties and name of a specific move used by a specific character.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the amount the current damage stat of the target would change if this move is used on them.int
Returns the amount the current health of the target would change if this move is used on them.getName()
Returns the name of this move.boolean
Returns whether this move is to be used on a character on the same team as the caster or not.
-
Constructor Details
-
Move
Creates a Move with the given details.- Parameters:
healthChange
- the amount the targeted BattleCharacter's current health will change when the Move is used.damageChange
- the amount the targeted BattleCharacter's damage stat will change when the Move is used.name
- the name of the Move.isFriendly
- boolean for if the Move is to be applied on a character on the same team as the caster.
-
-
Method Details
-
getHealthChange
public int getHealthChange()Returns the amount the current health of the target would change if this move is used on them.- Returns:
- the health change of this Move.
-
getDamageChange
public int getDamageChange()Returns the amount the current damage stat of the target would change if this move is used on them.- Returns:
- the damage change of this Move.
-
getName
Returns the name of this move.- Returns:
- the name of this Move as a String.
-
isFriendly
public boolean isFriendly()Returns whether this move is to be used on a character on the same team as the caster or not.- Returns:
- whether this Move should target a BattleCharacter on the same team (true) or on the other team (false).
-