mirror of
https://github.com/openlegends/asset-php.git
synced 2025-02-08 13:04:22 +00:00
draft ability apply method
This commit is contained in:
parent
0da9f94beb
commit
692cf3567c
@ -43,4 +43,7 @@ class Attack extends \OpenLegends\Engine\Abstract\Card\Ability
|
|||||||
|
|
||||||
// @TODO remove abilities
|
// @TODO remove abilities
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function apply()
|
||||||
|
{}
|
||||||
}
|
}
|
@ -5,4 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace OpenLegends\Asset\Test\Card\Ability;
|
namespace OpenLegends\Asset\Test\Card\Ability;
|
||||||
|
|
||||||
class Drain extends \OpenLegends\Engine\Abstract\Card\Ability
|
class Drain extends \OpenLegends\Engine\Abstract\Card\Ability
|
||||||
{}
|
{
|
||||||
|
public function apply(): void
|
||||||
|
{}
|
||||||
|
}
|
@ -5,4 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace OpenLegends\Asset\Test\Card\Ability;
|
namespace OpenLegends\Asset\Test\Card\Ability;
|
||||||
|
|
||||||
class Guard extends \OpenLegends\Engine\Abstract\Card\Ability
|
class Guard extends \OpenLegends\Engine\Abstract\Card\Ability
|
||||||
{}
|
{
|
||||||
|
public function apply(): void
|
||||||
|
{}
|
||||||
|
}
|
@ -5,4 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace OpenLegends\Asset\Test\Card\Ability;
|
namespace OpenLegends\Asset\Test\Card\Ability;
|
||||||
|
|
||||||
class Lethal extends \OpenLegends\Engine\Abstract\Card\Ability
|
class Lethal extends \OpenLegends\Engine\Abstract\Card\Ability
|
||||||
{}
|
{
|
||||||
|
public function apply(): void
|
||||||
|
{}
|
||||||
|
}
|
@ -14,4 +14,12 @@ class Multiple extends \OpenLegends\Engine\Abstract\Card\Ability
|
|||||||
{
|
{
|
||||||
$this->_abilities[] = $ability;
|
$this->_abilities[] = $ability;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function apply(): void
|
||||||
|
{
|
||||||
|
foreach ($this->_abilities as $ability)
|
||||||
|
{
|
||||||
|
$ability->apply();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user