add constructors

This commit is contained in:
openlegends 2024-03-15 15:57:47 +02:00
parent 0d46cf1175
commit d8ec77800c
3 changed files with 117 additions and 0 deletions

View File

@ -6,6 +6,45 @@ namespace OpenLegends\Asset\Test\Card;
class Goblin extends \OpenLegends\Engine\Abstract\Card
{
public function __construct()
{
$this->addAttribute(
_('Neutral')
);
$this->setType(
_('Unknown')
);
$this->setTitle(
_('Goblin')
);
$this->setDescription(
_('Just goblin')
);
$this->setCost(
1
);
$this->setPower(
3
);
$this->setHealth(
3
);
$this->setCraft(
3
);
$this->setExtract(
3
);
}
public function act(
\OpenLegends\Engine\Abstract\Card $target
) {}

View File

@ -6,6 +6,45 @@ namespace OpenLegends\Asset\Test\Card;
class Mouse extends \OpenLegends\Engine\Abstract\Card
{
public function __construct()
{
$this->addAttribute(
_('Neutral')
);
$this->setType(
_('Animal')
);
$this->setTitle(
_('Mouse')
);
$this->setDescription(
_('Just mouse')
);
$this->setCost(
0
);
$this->setPower(
1
);
$this->setHealth(
1
);
$this->setCraft(
1
);
$this->setExtract(
1
);
}
public function act(
\OpenLegends\Engine\Abstract\Card $target
) {}

View File

@ -6,6 +6,45 @@ namespace OpenLegends\Asset\Test\Card;
class Rat extends \OpenLegends\Engine\Abstract\Card
{
public function __construct()
{
$this->addAttribute(
_('Neutral')
);
$this->setType(
_('Animal')
);
$this->setTitle(
_('Rat')
);
$this->setDescription(
_('Just rat')
);
$this->setCost(
0
);
$this->setPower(
2
);
$this->setHealth(
2
);
$this->setCraft(
2
);
$this->setExtract(
2
);
}
public function act(
\OpenLegends\Engine\Abstract\Card $target
) {}