draft ability apply method

This commit is contained in:
openlegends 2024-03-17 00:38:57 +02:00
parent 0da9f94beb
commit 692cf3567c
5 changed files with 23 additions and 3 deletions

View File

@ -43,4 +43,7 @@ class Attack extends \OpenLegends\Engine\Abstract\Card\Ability
// @TODO remove abilities
}
public function apply()
{}
}

View File

@ -5,4 +5,7 @@ declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Ability;
class Drain extends \OpenLegends\Engine\Abstract\Card\Ability
{}
{
public function apply(): void
{}
}

View File

@ -5,4 +5,7 @@ declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Ability;
class Guard extends \OpenLegends\Engine\Abstract\Card\Ability
{}
{
public function apply(): void
{}
}

View File

@ -5,4 +5,7 @@ declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Ability;
class Lethal extends \OpenLegends\Engine\Abstract\Card\Ability
{}
{
public function apply(): void
{}
}

View File

@ -14,4 +14,12 @@ class Multiple extends \OpenLegends\Engine\Abstract\Card\Ability
{
$this->_abilities[] = $ability;
}
public function apply(): void
{
foreach ($this->_abilities as $ability)
{
$ability->apply();
}
}
}