Open Legends Core Library in PHP 8
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

<?php
declare(strict_types=1);
namespace OpenLegends\Core\Interface\Game;
interface Player
{
public function __construct();
public function setHealth(
int $value
): void;
public function getHealth(): int;
public function getUser(): \OpenLegends\Core\Abstract\User;
public function setUser(
\OpenLegends\Core\Abstract\User $user
): void;
public function getDeck(): \OpenLegends\Core\Abstract\Pool\Card;
public function setDeck(
\OpenLegends\Core\Abstract\Pool\Card $deck
): void;
public function getHand(): \OpenLegends\Core\Abstract\Pool\Card;
public function setHand(
\OpenLegends\Core\Abstract\Pool\Card $hand
): void;
public function getPile(): \OpenLegends\Core\Abstract\Pool\Card;
public function setPile(
\OpenLegends\Core\Abstract\Pool\Card $pile
): void;
public function getLeft(): \OpenLegends\Core\Abstract\Pool\Card;
public function setLeft(
\OpenLegends\Core\Abstract\Pool\Card $left
): void;
public function getRight(): \OpenLegends\Core\Abstract\Pool\Card;
public function setRight(
\OpenLegends\Core\Abstract\Pool\Card $right
): void;
}