Package card
Class Card
java.lang.Object
card.Card
- Direct Known Subclasses:
EnergyCard
,PokemonCard
,TrainerCard
This class represents a generic card in the Pokémon Trading Card Game.
It provides methods to get the card name and card type.
- Version:
- 1.0
- Author:
- Tyler Mong
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
-
type
-
-
Constructor Details
-
Card
Constructor to initialize a card with a name and type. This constructor is called by the subclasses to create a new card.- Parameters:
name
- The name of the card.type
- The type of the card (e.g., Pokémon, Energy, Trainer).
-
-
Method Details
-
getName
Returns the name of the card.- Returns:
- The name of the card.
-
getType
Returns the type of the card.- Returns:
- The type of the card (e.g., Pokémon, Energy, Trainer).
-