Uses of Class
game.Player
Packages that use Player
Package
Description
This package contains the main game logic for the Pokémon Trading Card Game (TCG) emulation.
-
Uses of Player in game
Modifier and TypeFieldDescriptionprivate PlayerGame.currentPlayerA reference to the current player whose turn it is.private PlayerGame.opponentA reference to the opponent player, who is not currently taking their turn.private PlayerGame.player1A reference to the first player in the game.private PlayerGame.player2A reference to the second player in the game.Modifier and TypeMethodDescriptionprivate voidGame.addBenchPokemon(Player player) Sets the player's Benched Pokémon.private voidGame.addPrizePokemon(Player player) Adds 6 cards to the player's Prize pile.private booleanGame.attachEnergy(Player currentPlayer) Handles attaching energy to a Pokémon.private voidGame.handleBonusDraws(Player currentPlayer, int opponentMulliganCount) Handles the bonus draws for the current player based on the opponent's Mulligan count.private voidGame.handleKnockout(Player currentPlayer, Player opponent) Handles the knockout of a Pokémon after an attack.private voidGame.handleNoActivePokemon(Player currentPlayer) Handles the case of the current player having no Active Pokémon, at the end of their opponent's turn.private voidGame.playTrainerCard(Player currentPlayer) Handles playing a Trainer card.private booleanGame.retreatActivePokemon(Player currentPlayer) Handles retreating the Active Pokémon to the Bench.private voidGame.selectDeck(Player player) This method handles deck selection for each player.private voidGame.setActivePokemon(Player player) Sets the player's Active Pokémon.private voidGame.showCardStats(Player currentPlayer) Displays the stats of a selected Pokémon card.private intGame.validateHand(Player player) Checks if the player's hand contains any Basic Pokémon cards.