PETEndDevelopmentPhaseFunctionsTrait

trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETEndDevelopmentPhaseFunctionsTrait
This trait holds game methods that pertain to the development phase of the game
Source

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

Used traits

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETCardFunctionsTrait

Methods

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETEndDevelopmentPhaseFunctionsTrait::endDevelopmentPhaseContinue()
Game action when the active players doesn't want to take back research cards to their hand
Source

modules/php/Traits/Actions/PETEndDevelopmentPhaseFunctionsTrait.php#32

Returns

void

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETEndDevelopmentPhaseFunctionsTrait::takeBackDevelopingTechnologies($cardIds)
Game action called when a user wants to take research cards from their research area back to their hand
The method gets the cards from the Deck component, checks that the cards come from the player's research area
(anti-hack check), then moves them back to the player's hand. Players are then notified of the changes
Source

modules/php/Traits/Actions/PETEndDevelopmentPhaseFunctionsTrait.php#48

Parameters
  • $cardIds (array) ids of the cards the player wants to take back

Returns

void