openNextAge state

Properties

id

500

name

openNextAge

type

game

description

not set

descriptionmyturn

not set

action

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\States\Actions\PETOpenNextAgePhaseFunctionsTrait::stOpenNextAge

transitions
possibleactions

not set

args

not set

updateGameProgression

true

initialprivate

not set

Summary

This game state is responsible for opening a new age once enough Age tokens have been received by players.

Detailed description

The action function will take apropriate steps according to the age being opened:

  1. Opening Age II:

    The age_II_started global is set to 1 (meaning true), which will have effects on SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETCardFunctionsTrait::getValidDrawLocations. Notification is sent to the front-end so that the Age II deck and discards may appear.

  2. Opening Age III

    The age_III_started global is set to 1 as well as the age_I_ended global. Notification is sent to the front-end so that the Age III deck may become available, and the Age I deck becomes unavailable. The function also moves remaining cards in the Age I deck and discard into the trash location. Remaining Age I cards in players’ research locations and hands are also moved to the trash location, so that they may not be retrieved.