mirror of
https://github.com/openlegends/asset-php.git
synced 2025-02-08 04:54:15 +00:00
add constructors
This commit is contained in:
parent
0d46cf1175
commit
d8ec77800c
@ -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
|
||||
) {}
|
||||
|
@ -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
|
||||
) {}
|
||||
|
@ -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
|
||||
) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user