Package card.pokemon.helper
Class Move
java.lang.Object
card.pokemon.helper.Move
This class provides helper methods for Pokémon cards in the Pokémon Trading Card Game.
It contains methods to get the name, damage, energy cost, and effect of a move.
- Version:
- 1.0
- Author:
- Tyler Mong
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The damage of the move (e.g., 30).private String
The effect of the move (e.g., "Paralyze the opponent's Pokémon").A map of energy types and their required amounts for the move (e.g., {"Fire": 1, "Water": 2}).private String
The name of the move (e.g., "Low Kick"). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The name of the move (e.g., "Low Kick"). -
damage
private int damageThe damage of the move (e.g., 30). -
energyCost
A map of energy types and their required amounts for the move (e.g., {"Fire": 1, "Water": 2}). The key is the energy type, and the value is the amount of that energy required. -
effect
The effect of the move (e.g., "Paralyze the opponent's Pokémon").
-
-
Constructor Details
-
Move
Constructor to initialize a Move with a name, damage, energy cost, and effect.- Parameters:
name
- The name of the move.damage
- The damage of the move.energyCost
- A map of energy types and their required amounts for the move.effect
- The effect of the move (e.g., "Paralyze the opponent's Pokémon").
-
-
Method Details
-
getName
Returns the name of the move.- Returns:
- The name of the move.
-
getDamage
public int getDamage()Returns the damage of the move.- Returns:
- The damage of the move.
-
getEnergyCost
Returns the energy cost of the move.- Returns:
- A map of energy types and their required amounts for the move.
-
getEffect
Returns the effect of the move.- Returns:
- The effect of the move.
-