-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAITechManager.h
46 lines (38 loc) · 853 Bytes
/
AITechManager.h
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
#pragma once
#include "OP2Helper/OP2Helper.h"
#include "Outpost2DLL/Outpost2DLL.h"
#include <vector>
enum class TurretLevel
{
Initial, //microwave, sticky, laser
Intermediate, //RPG, EMP, Railgun
Advanced //ESG, Cloud, Thor
};
enum class ChassisType
{
Lynx,
Panther,
Tiger
};
class AITechManager {
public:
AITechManager(PlayerNum aiPlayerIndex);
void RaiseTech();
bool EmpMissileAvailable() const;
TurretLevel CurrentTurretLevel() const;
ChassisType GetChassisType() const;
private:
struct TechOption
{
TechID prerequisite;
std::vector<TechID> gainedTech;
bool raiseTurretLevel;
bool raiseChassisLevel;
};
static const std::vector<TechOption> allTech;
const PlayerNum aiPlayerIndex;
std::vector<TechOption> unusedTech;
TurretLevel turretLevel;
ChassisType chassisType;
std::vector<TechOption> GetAvailableTech();
};