mirror of
https://github.com/openlegends/asset-php.git
synced 2025-02-08 13:04:22 +00:00
draft arena game
This commit is contained in:
parent
d17ff2c13a
commit
4a3364aaa8
43
src/Test/Game/Arena.php
Normal file
43
src/Test/Game/Arena.php
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Game;
|
||||||
|
|
||||||
|
class Arena extends \OpenLegends\Engine\Abstract\Game
|
||||||
|
{
|
||||||
|
public function __construct(
|
||||||
|
\OpenLegends\Engine\Abstract\Player $player,
|
||||||
|
|
||||||
|
\OpenLegends\Engine\Abstract\Pool\Card $deck,
|
||||||
|
\OpenLegends\Engine\Abstract\Pool\Card $hand,
|
||||||
|
\OpenLegends\Engine\Abstract\Pool\Card $pile,
|
||||||
|
|
||||||
|
\OpenLegends\Engine\Abstract\Pool\Card $left,
|
||||||
|
\OpenLegends\Engine\Abstract\Pool\Card $right
|
||||||
|
) {
|
||||||
|
$this->setPlayer(
|
||||||
|
$player
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->setDeck(
|
||||||
|
$deck
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->setHand(
|
||||||
|
$hand
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->setPile(
|
||||||
|
$pile
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->setLeft(
|
||||||
|
$left
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->setRight(
|
||||||
|
$right
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user