| 1 | <?php |
||
| 10 | class GameMoveCommand extends AbstractPlayerCommand |
||
| 11 | { |
||
| 12 | const NAME = 'GAME.MOVE'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Move |
||
| 16 | */ |
||
| 17 | private $move; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Constructor. |
||
| 21 | */ |
||
| 22 | 12 | public function __construct() |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Returns the command name |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 3 | public function getCommandName() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return Move |
||
| 38 | */ |
||
| 39 | 9 | public function getMove() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Static constructor. |
||
| 46 | * |
||
| 47 | * @param MiniGameId $gameId |
||
| 48 | * @param PlayerId $playerId |
||
| 49 | * @param Move $move |
||
| 50 | * @param Context $origin |
||
| 51 | * |
||
| 52 | * @return GameMoveCommand |
||
| 53 | */ |
||
| 54 | 12 | public static function create( |
|
| 68 | } |
||
| 69 |