/
ai.hpp
52 lines (45 loc) · 1.61 KB
/
ai.hpp
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
/**
* Part of Epicinium
* developed by A Bunch of Hacks.
*
* Copyright (c) 2017-2020 A Bunch of Hacks
*
* Epicinium is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Epicinium is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* [authors:]
* Sander in 't Veld (sander@abunchofhacks.coop)
* Daan Mulder (daan@abunchofhacks.coop)
*/
#pragma once
#include "header.hpp"
class AICommander;
enum class Player : uint8_t;
enum class Difficulty : uint8_t;
class AI
{
public:
static AICommander* allocate(const std::string& ainame,
const Player& player, const Difficulty& difficulty,
const std::string& ruleset, char character);
public:
static std::unique_ptr<AICommander> create(const std::string& ainame,
const Player& player, const Difficulty& difficulty,
const std::string& ruleset, char character);
static bool exists(const std::string& name);
static std::string libraryDefaultFilename(const std::string& name);
static const std::vector<std::string>& pool();
static const std::vector<std::string>& selfHostedPool();
private:
static const std::vector<std::string>& hiddenPool();
};