PETTokenFunctionsTrait

trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETTokenFunctionsTrait
Source

modules/php/Traits/Utility/PETTokenFunctionsTrait.php#19

Used traits

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETCardFunctionsTrait

Methods

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETTokenFunctionsTrait::getAgeTokens()
Returns an array with all the age tokens the game currently has and their properties (in the Deck component
sense). Useful for game progression computation
Source

modules/php/Traits/Utility/PETTokenFunctionsTrait.php#30

Returns

array

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETTokenFunctionsTrait::isTokenUsed($token)
Check whether the token is used or not (location_arg set to 1 if used)
Source

modules/php/Traits/Utility/PETTokenFunctionsTrait.php#53

Parameters
Returns

bool

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETTokenFunctionsTrait::isTokenUsedForPlayer($token, $playerId)
Checks whether the token is used and in the player's token area
Source

modules/php/Traits/Utility/PETTokenFunctionsTrait.php#66

Parameters
Returns

bool

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETTokenFunctionsTrait::isTokenBelongingToPlayer($token, $playerId)
Returns whether the given token belongs to the player or not
Source

modules/php/Traits/Utility/PETTokenFunctionsTrait.php#79

Parameters
Returns

bool

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETTokenFunctionsTrait::useTokenForPlayer($token, $playerId)
Helper function to use a token for the given player
Source

modules/php/Traits/Utility/PETTokenFunctionsTrait.php#92

Parameters
Returns

array