Class Move

java.lang.Object
card.pokemon.helper.Move

public class Move extends Object
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 Details

    • name

      private String name
      The name of the move (e.g., "Low Kick").
    • damage

      private int damage
      The damage of the move (e.g., 30).
    • energyCost

      private Map<String,Integer> 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

      private String effect
      The effect of the move (e.g., "Paralyze the opponent's Pokémon").
  • Constructor Details

    • Move

      public Move(String name, int damage, Map<String,Integer> energyCost, String effect)
      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

      public String 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

      public Map<String,Integer> getEnergyCost()
      Returns the energy cost of the move.
      Returns:
      A map of energy types and their required amounts for the move.
    • getEffect

      public String getEffect()
      Returns the effect of the move.
      Returns:
      The effect of the move.