-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAI.php
37 lines (32 loc) · 1017 Bytes
/
AI.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace Prokki\Warlight2BotTemplate;
use Prokki\Warlight2BotTemplate\Game\Move\AttackMove;
interface AI
{
/**
* Returns the pick move of the region to pick.
*
* These moves are going to build the response to the request `pick_starting_region` - see {@see \Prokki\Warlight2BotTemplate\Command\PickStartingRegionCommand}.
*
* @param integer[] $region_ids
*
* @return PickMove|null
*/
public function getPickMove($region_ids);
/**
* Returns all place moves.
*
* These moves are going to build the response to the request `go place_armies` - see {@see \Prokki\Warlight2BotTemplate\Command\GoPlaceArmiesCommand}.
*
* @return PlaceMove[]
*/
public function getPlaceMoves();
/**
* Returns all attack and transfer moves.
*
* These moves are going to build the response to the request `go attack/transfer` - see {@see \Prokki\Warlight2BotTemplate\Command\GoAttackTransferCommand}.
*
* @return TransferMove[]|AttackMove[]
*/
public function getAttackTransferMoves();
}