Implementing A Leader Card - bugladen/bga7s5s GitHub Wiki

To implement a Leader card:

  1. If not done already, make sure the image for the card is stored at the proper location . Ensure that the image is sized correctly .
  2. Create a new PHP file in the proper location .
  3. In the new PHP file, create a class with the proper name . It must extend the Leader class.
  4. Using the card as a reference, set the properties of the new class as illustrated below.
  5. Ensure that parent::__construct() is called from your constructor.
  6. Add any passive or forced reaction code.
  7. Add any necessary Action classes.
  8. Add any necessary Reaction classes.
  9. Add any necessary Technique classes.
  10. Add any necessary Maneuver classes.

Below is the Leader card Soline El Gato and its basic class definition - the code for the effects and Reaction still need to be added.

<?php

namespace Bga\Games\SeventhSeaCityOfFiveSails\cards\_7s5s;

use Bga\Games\SeventhSeaCityOfFiveSails\cards\Leader;

class _01089 extends Leader
{
    public function __construct()
    {
        parent::__construct();

        $this->Name = "Soline El Gato";
        $this->Image = "img/cards/7s5s/089.jpg";
        $this->ExpansionName = "_7";
        $this->ExpansionNumber = 1;
        $this->CardNumber = 89;

        $this->Faction = "Castille";
        $this->Title = "Prince of Thieves";
        $this->Resolve = 7;
        $this->Combat = 3;
        $this->Finesse = 2;
        $this->Influence = 2;
        $this->CrewCap = 6;
        $this->Panache = 6;

        $this->resetModifiedCharacterStats();
        
        $this->ModifiedCrewCap = $this->CrewCap;
        $this->ModifiedPanache = $this->Panache;

        $this->Traits = [
            "Leader",
            "Pirate",
            "Scoundrel",
            "Castille",
        ];
    }

}