PETUpkeepDiscardFunctionsTrait

trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETUpkeepDiscardFunctionsTrait
Trait holding game actions that are supposed to happen during upkeepPhase state
Source

modules/php/Traits/Actions/PETUpkeepDiscardFunctionsTrait.php#25

Used traits

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETCardFunctionsTrait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETActionFunctionsTrait

Methods

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETUpkeepDiscardFunctionsTrait::upkeepDiscard($cardsId)
Discards cards from the active player's hand.
First checks if the action is possible, check if the player discarded the right number of cards, then get the
cards from the Deck component, check that they come from the player's hand, and then discard them and notify
players
Source

modules/php/Traits/Actions/PETUpkeepDiscardFunctionsTrait.php#41

Parameters
  • $cardsId (array)

Returns

void