PETDiscoverActionPhaseActionFunctionsTrait

trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETDiscoverActionPhaseActionFunctionsTrait
Source

modules/php/Traits/Actions/PETDiscoverActionPhaseActionFunctionsTrait.php#23

Used traits

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

Methods

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETDiscoverActionPhaseActionFunctionsTrait::discoverActionSetDiscoveringCard($cardId)
Method responsible for notifying the active player of the cost of the card being discovered. If the cost is
already covered by active or research cards, then the card is played and all the players are notified.
Source

modules/php/Traits/Actions/PETDiscoverActionPhaseActionFunctionsTrait.php#37

Parameters
  • $cardId (int)

Returns

void

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETDiscoverActionPhaseActionFunctionsTrait::discoverActionDiscardCardsUseTokens($ids)
Game method called when the player discards cards and/or uses tokens to pay for the card's cost
Source

modules/php/Traits/Actions/PETDiscoverActionPhaseActionFunctionsTrait.php#71

Parameters
  • $ids (int[])

Returns

void

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETDiscoverActionPhaseActionFunctionsTrait::discoverActionDiscardCards($ageCard)
Moves the given card to the discover_discard location, marking it as discarded by the player to pay for the costs
Source

modules/php/Traits/Actions/PETDiscoverActionPhaseActionFunctionsTrait.php#110

Parameters
Returns

void

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETDiscoverActionPhaseActionFunctionsTrait::discoverActionUseToken($token)
Moves the give token to the discover_tokens location, marking them as used by the player to pay for the costs
Source

modules/php/Traits/Actions/PETDiscoverActionPhaseActionFunctionsTrait.php#124

Parameters
Returns

void

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETDiscoverActionPhaseActionFunctionsTrait::discoverActionDiscover($ageCard)
Actually discovers the card once the costs have been paid. Creates the notification arguments and log accordingly
Source

modules/php/Traits/Actions/PETDiscoverActionPhaseActionFunctionsTrait.php#141

Parameters
Returns

void

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETDiscoverActionPhaseActionFunctionsTrait::discoverActionCancel()
Allows a player to cancel the discover action.
Cards are moved back to the player's hand, and tokens to the player's token reserve
Source

modules/php/Traits/Actions/PETDiscoverActionPhaseActionFunctionsTrait.php#191

Returns

void