-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAIBot.php
78 lines (66 loc) · 1.24 KB
/
AIBot.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
namespace Prokki\Warlight2BotTemplate;
use Prokki\TheaigamesBotEngine\Bot;
use Prokki\Warlight2BotTemplate\Command\Parser;
use Prokki\Warlight2BotTemplate\Game\Environment;
use Prokki\Warlight2BotTemplate\Game\EnvironmentFactory;
class AIBot implements Bot, AI
{
/**
* @var Environment
*/
protected $_environment = null;
/**
* @var EnvironmentFactory
*/
protected $_environmentFactory = null;
/**
* @var Parser
*/
protected $_parser = null;
/**
* AIBot constructor.
*
* Required: EnvironmentFactory must be initialized, see {@see \Prokki\Warlight2BotTemplate\Game\EnvironmentFactory::Init()}.
*/
public function __construct()
{
$this->_environment = EnvironmentFactory::Get()->newEnvironment();
$this->_parser = new Parser();
}
/**
* @return \Prokki\TheaigamesBotEngine\Game\Environment
*/
public function getEnvironment()
{
return $this->_environment;
}
/**
* @return Parser
*/
public function getParser()
{
return $this->_parser;
}
/**
* @inheritdoc
*/
public function getPickMove($region_ids)
{
return null;
}
/**
* @inheritdoc
*/
public function getAttackTransferMoves()
{
return array();
}
/**
* @inheritdoc
*/
public function getPlaceMoves()
{
return array();
}
}