PETToken
- class SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
Summary
Methods
Properties
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$deckId
- Token's id for the Deck component
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$deckType
- Token's type for the deck component
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$deckTypeArg
- Token's type_arg for the Deck component, currently not used, defaults to 0
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$location
- Token's location for the Deck component
- Source
- Type
string
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$locationArg
- Token's location_arg for the Deck component.Used for all tokens: 1 means the token has been used (Knowledge Token) or brought into play (Age token), 0 meansthe token hasn't been used or brought into play
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$name
- Token's name
- Source
- Type
string
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$knowledgeType
- Token's knowledge type if the token is a Knowledge Token
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$numberOfTokensByPlayerCount
- Array of tokens number depending on players number
- Source
- Type
int[]
Methods
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getDeckId()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setDeckId($deckId)
- Source
- Parameters
$deckId (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getDeckType()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setDeckType($deckType)
- Source
- Parameters
$deckType (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getDeckTypeArg()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setDeckTypeArg($deckTypeArg)
- Source
- Parameters
$deckTypeArg (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getLocation()
- Source
- Returns
string
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setLocation($location)
- Source
- Parameters
$location (string)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getLocationArg()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setLocationArg($locationArg)
- Source
- Parameters
$locationArg (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getName()
- Source
- Returns
string
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setName($name)
- Source
- Parameters
$name (string)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::isKnowledgeToken()
- Source
- Returns
bool
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getKnowledgeType()
- Source
- Returns
int | null
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setKnowledgeType($type)
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getNumberOfTokensByPlayerCount($playerCount)
- Source
- Parameters
$playerCount (int)
- Returns
int | null
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setNumberOfTokensByPlayerCount($numberOfTokensByPlayerCount)
- Source
- Parameters
$numberOfTokensByPlayerCount (int[])
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::toDeckCreateCardArray($playerCount)
- Returns the array for the createCard method corresponding to the token
- Source
- Parameters
$playerCount (int)
- Returns
array
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::toDeckCardArray()
- Returns an array describing the token for the Deck component
- Source
- Returns
array
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::jsonSerialize()
- Return the array describing the token when it is sent as a notification item and JSON serialized
- Source
- Returns
array