PETAgeCard

class SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard
Class used to represent age card types for the game
Source

modules/php/Object/PETAgeCard.php#24

Implements

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface

Summary

Methods

Properties

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$deckId
Card's id for the Deck component
Source

modules/php/Object/PETAgeCard.php#31

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$deckType
Card's type for the deck component
Source

modules/php/Object/PETAgeCard.php#38

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$location
Card's lcoation for the deck component
Source

modules/php/Object/PETAgeCard.php#45

Type

string

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$locationArg
Card's location_arg for the Deck component
Source

modules/php/Object/PETAgeCard.php#52

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$cardName
Card's name, needs to be marked for translation
Source

modules/php/Object/PETAgeCard.php#58

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

modules/php/Object/PETAgeCard.php#65

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$value
Card's value in General Knowledge when discarded to discover a technology
Source

modules/php/Object/PETAgeCard.php#72

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

modules/php/Object/PETAgeCard.php#79

Type

array

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$cost
Cost object representing the card's cost
Source

modules/php/Object/PETAgeCard.php#86

Type

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCardCost

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$skill
If any, skill gain given by the card
Source

modules/php/Object/PETAgeCard.php#93

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 meaning
with regard to scoring (see constants)
Source

modules/php/Object/PETAgeCard.php#101

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::$token
Token granted by the card (if any) upon discovery or research completion
Source

modules/php/Object/PETAgeCard.php#108

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

modules/php/Object/PETAgeCard.php#115

Type

string[]

Methods

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getDeckId()
Source

modules/php/Object/PETAgeCard.php#120

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setDeckId($deckId)
Source

modules/php/Object/PETAgeCard.php#130

Parameters
  • $deckId (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getDeckType()
Source

modules/php/Object/PETAgeCard.php#139

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setDeckType($deckType)
Source

modules/php/Object/PETAgeCard.php#149

Parameters
  • $deckType (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getLocation()
Source

modules/php/Object/PETAgeCard.php#158

Returns

string

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setLocation($location)
Source

modules/php/Object/PETAgeCard.php#168

Parameters
  • $location (string)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getLocationArg()
Source

modules/php/Object/PETAgeCard.php#177

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setLocationArg($locationArg)
Source

modules/php/Object/PETAgeCard.php#187

Parameters
  • $locationArg (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getCardName()
Source

modules/php/Object/PETAgeCard.php#196

Returns

string

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setCardName($cardName)
Source

modules/php/Object/PETAgeCard.php#206

Parameters
  • $cardName (string)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getValue()
Source

modules/php/Object/PETAgeCard.php#215

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getType()
Source

modules/php/Object/PETAgeCard.php#223

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setType($type)
Source

modules/php/Object/PETAgeCard.php#233

Parameters
  • $type (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setValue($value)
Source

modules/php/Object/PETAgeCard.php#244

Parameters
  • $value (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getNumberOfCardsByPlayerCount($playerCount)
Source

modules/php/Object/PETAgeCard.php#255

Type

int

Returns

int

private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getNumberOfCardsByPlayerCountArray()
Source

modules/php/Object/PETAgeCard.php#263

Returns

array

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setNumberOfCardsByPlayerCount($numberOfCardsByPlayerCount)
Source

modules/php/Object/PETAgeCard.php#273

Parameters
  • $numberOfCardsByPlayerCount (array)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getCost()
Source

modules/php/Object/PETAgeCard.php#282

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCardCost

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setCost($cost)
Source

modules/php/Object/PETAgeCard.php#292

Parameters
Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getSkill()
Source

modules/php/Object/PETAgeCard.php#301

Returns

string | null

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setSkill($skill)
Source

modules/php/Object/PETAgeCard.php#311

Parameters
  • $skill (string)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getVictoryPoints()
Source

modules/php/Object/PETAgeCard.php#320

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setVictoryPoints($victoryPoints)
Source

modules/php/Object/PETAgeCard.php#330

Parameters
  • $victoryPoints (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getToken()
Source

modules/php/Object/PETAgeCard.php#339

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken | null

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setToken($token)
Source

modules/php/Object/PETAgeCard.php#349

Parameters
Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getPower()
Source

modules/php/Object/PETAgeCard.php#358

Returns

string[]

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::setPower($power)
Source

modules/php/Object/PETAgeCard.php#368

Parameters
  • $power (string[])

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getAge()
Source

modules/php/Object/PETAgeCard.php#377

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETAgeCard::getAgeRoman()
Returns the Age the cards belongs to as a roman numeral
Source

modules/php/Object/PETAgeCard.php#387

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

modules/php/Object/PETAgeCard.php#414

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

modules/php/Object/PETAgeCard.php#428

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 in
ProgressEvolutionOfTechnology::getAllDatas() method
Source

modules/php/Object/PETAgeCard.php#445

Returns

array