PETAgeCard
- class SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- Class used to represent age card types for the game
Summary
Methods
Properties
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$deckId
- Card's id for the Deck component
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$deckType
- Card's type for the deck component
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$location
- Card's lcoation for the deck component
- Source
- Type
string
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$locationArg
- Card's location_arg for the Deck component
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$cardName
- Card's name, needs to be marked for translation
- Source
- Type
string
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$type
- Card's type (use constants), mapped to type_arg for the deck component
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$value
- Card's value in General Knowledge when discarded to discover a technology
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$numberOfCardsByPlayerCount
- Array indicating the number of this card in the deck depending on the number of players
- Source
- Type
array
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$cost
- Cost object representing the card's cost
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$skill
- If any, skill gain given by the card
- Source
- Type
string | null
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$victoryPoints
- Victory points awarded (if any) upon card's discovery or research completion. Negative value have special meaningwith regard to scoring (see constants)
- Source
- Type
int
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$token
- Token granted by the card (if any) upon discovery or research completion
- Source
- Type
SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
- private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$power
- Power level(s) granted (if any) upon discovery or research completion
- Source
- Type
string[]
Methods
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getDeckId()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setDeckId($deckId)
- Source
- Parameters
$deckId (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getDeckType()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setDeckType($deckType)
- Source
- Parameters
$deckType (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getLocation()
- Source
- Returns
string
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setLocation($location)
- Source
- Parameters
$location (string)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getLocationArg()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setLocationArg($locationArg)
- Source
- Parameters
$locationArg (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getCardName()
- Source
- Returns
string
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setCardName($cardName)
- Source
- Parameters
$cardName (string)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getValue()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getType()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setType($type)
- Source
- Parameters
$type (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setValue($value)
- Source
- Parameters
$value (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getNumberOfCardsByPlayerCount($playerCount)
- Source
- Type
int
- Returns
int
- private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getNumberOfCardsByPlayerCountArray()
- Source
- Returns
array
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setNumberOfCardsByPlayerCount($numberOfCardsByPlayerCount)
- Source
- Parameters
$numberOfCardsByPlayerCount (array)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getCost()
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setCost($cost)
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getSkill()
- Source
- Returns
string | null
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setSkill($skill)
- Source
- Parameters
$skill (string)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getVictoryPoints()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setVictoryPoints($victoryPoints)
- Source
- Parameters
$victoryPoints (int)
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getToken()
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setToken($token)
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getPower()
- Source
- Returns
string[]
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setPower($power)
- Source
- Parameters
$power (string[])
- Returns
\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getAge()
- Source
- Returns
int
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getAgeRoman()
- Returns the Age the cards belongs to as a roman numeral
- Source
- Returns
string
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::toDeckCreateCardArray($playerCount)
- Returns an array that can serve as argument for the createCards function of the Deck component
- Source
- Type
int
- Returns
array
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::toDeckCardArray()
- Returns an array that holds the Deck properties for interface with Deck component, and notifications
- Source
- Returns
array
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::jsonSerialize()
- Returns the array to be converted to JSON when card is sent as notification argument or inProgressEvolutionOfTechnology::getAllDatas() method
- Source
- Returns
array