Implementing A Scheme Card - bugladen/bga7s5s GitHub Wiki
To implement a scheme card:
- If not done already, make sure the image for the card is stored at the proper location . Ensure that the image is sized correctly .
- Create a new PHP file in the proper location .
- In the new PHP file, create a class with the proper name . It must extend the Scheme class.
- Using the card as a reference, set the properties of the new class as illustrated below.
- Ensure that
parent::__construct()
is called from your constructor. - Add any passive or forced reaction code.
- Add any necessary Action classes.
- Add any necessary Reaction classes.
Below is the Scheme Armed and Marshaled and its starting class definition - the code for the effects and Action still need to be added.
<?php
namespace Bga\Games\SeventhSeaCityOfFiveSails\cards\_7s5s;
use Bga\Games\SeventhSeaCityOfFiveSails\cards\Scheme;
class _01044 extends Scheme
{
public function __construct()
{
parent::__construct();
$this->Name = "Armed and Marshaled";
$this->Image = "img/cards/7s5s/044.jpg";
$this->ExpansionName = "_7s5s";
$this->ExpansionNumber = 1;
$this->CardNumber = 44;
$this->Faction = "Eisen";
$this->Initiative = 37;
$this->PanacheModifier = -1;
$this->Traits = [
"Duress",
"Logistics",
];
}
}