update namespace

This commit is contained in:
openlegends 2024-03-16 20:29:57 +02:00
parent a3850d3a45
commit fb10e3e869
26 changed files with 110 additions and 110 deletions

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Ability;
class Drain extends \OpenLegends\Engine\Abstract\Ability
{}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Ability;
class Guard extends \OpenLegends\Engine\Abstract\Ability
{}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Ability;
class Lethal extends \OpenLegends\Engine\Abstract\Ability
{}

View File

@ -1,17 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Ability;
class Multiple extends \OpenLegends\Engine\Abstract\Ability
{
private array $_abilities = [];
public function add(
\OpenLegends\Engine\Abstract\Ability $ability
): void
{
$this->_abilities[] = $ability;
}
}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Attribute;
class Goblin extends \OpenLegends\Engine\Abstract\Attribute
{}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Attribute;
class Multiple extends \OpenLegends\Engine\Abstract\Attribute
{}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Attribute;
class Neutral extends \OpenLegends\Engine\Abstract\Attribute
{}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Ability;
class Drain extends \OpenLegends\Engine\Abstract\Card\Ability
{}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Ability;
class Guard extends \OpenLegends\Engine\Abstract\Card\Ability
{}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Ability;
class Lethal extends \OpenLegends\Engine\Abstract\Card\Ability
{}

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Ability;
class Multiple extends \OpenLegends\Engine\Abstract\Card\Ability
{
private array $_abilities = [];
public function add(
\OpenLegends\Engine\Abstract\Card\Ability $ability
): void
{
$this->_abilities[] = $ability;
}
}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Attribute;
class Goblin extends \OpenLegends\Engine\Abstract\Card\Attribute
{}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Attribute;
class Multiple extends \OpenLegends\Engine\Abstract\Card\Attribute
{}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Attribute;
class Neutral extends \OpenLegends\Engine\Abstract\Card\Attribute
{}

View File

@ -8,14 +8,14 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
{ {
public function __construct() public function __construct()
{ {
$ability = new \OpenLegends\Asset\Test\Ability\Multiple(); $ability = new \OpenLegends\Asset\Test\Card\Ability\Multiple();
$ability->add( $ability->add(
new \OpenLegends\Asset\Test\Ability\Lethal() new \OpenLegends\Asset\Test\Card\Ability\Lethal()
); );
$ability->add( $ability->add(
new \OpenLegends\Asset\Test\Ability\Guard() new \OpenLegends\Asset\Test\Card\Ability\Guard()
); );
$this->setAbility( $this->setAbility(
@ -23,15 +23,15 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
); );
$this->setAttribute( $this->setAttribute(
new \OpenLegends\Asset\Test\Attribute\Neutral() new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
); );
$this->setType( $this->setType(
new \OpenLegends\Asset\Test\Type\Goblin() new \OpenLegends\Asset\Test\Card\Type\Goblin()
); );
$this->setRarity( $this->setRarity(
new \OpenLegends\Asset\Test\Rarity\Common() new \OpenLegends\Asset\Test\Card\Rarity\Common()
); );
$this->setTitle( $this->setTitle(

View File

@ -9,15 +9,15 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card
public function __construct() public function __construct()
{ {
$this->setAttribute( $this->setAttribute(
new \OpenLegends\Asset\Test\Attribute\Neutral() new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
); );
$this->setType( $this->setType(
new \OpenLegends\Asset\Test\Type\Animal() new \OpenLegends\Asset\Test\Card\Type\Animal()
); );
$this->setRarity( $this->setRarity(
new \OpenLegends\Asset\Test\Rarity\Common() new \OpenLegends\Asset\Test\Card\Rarity\Common()
); );
$this->setTitle( $this->setTitle(

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Rarity;
class Common extends \OpenLegends\Engine\Abstract\Card\Rarity
{}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Rarity;
class Rare extends \OpenLegends\Engine\Abstract\Card\Rarity
{}

View File

@ -9,15 +9,15 @@ class Rat extends \OpenLegends\Engine\Abstract\Card
public function __construct() public function __construct()
{ {
$this->setAttribute( $this->setAttribute(
new \OpenLegends\Asset\Test\Attribute\Neutral() new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
); );
$this->setType( $this->setType(
new \OpenLegends\Asset\Test\Type\Animal() new \OpenLegends\Asset\Test\Card\Type\Animal()
); );
$this->setRarity( $this->setRarity(
new \OpenLegends\Asset\Test\Rarity\Common() new \OpenLegends\Asset\Test\Card\Rarity\Common()
); );
$this->setTitle( $this->setTitle(

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Type;
class Animal extends \OpenLegends\Engine\Abstract\Card\Type
{}

View File

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card\Type;
class Goblin extends \OpenLegends\Engine\Abstract\Card\Type
{}

View File

@ -4,5 +4,5 @@ declare(strict_types=1);
namespace OpenLegends\Asset\Test\Game; namespace OpenLegends\Asset\Test\Game;
class Pool extends \OpenLegends\Engine\Abstract\Pool class Pool extends \OpenLegends\Engine\Abstract\Card\Pool
{} {}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Rarity;
class Common extends \OpenLegends\Engine\Abstract\Rarity
{}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Rarity;
class Rare extends \OpenLegends\Engine\Abstract\Rarity
{}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Type;
class Animal extends \OpenLegends\Engine\Abstract\Type
{}

View File

@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Type;
class Goblin extends \OpenLegends\Engine\Abstract\Type
{}