-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFightGroupOverlay.h
45 lines (36 loc) · 1.02 KB
/
FightGroupOverlay.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
#pragma once
#include "Outpost2DLL/Outpost2DLL.h"
#include <vector>
struct TargetTankCount
{
map_id tankType;
map_id weaponType;
int count;
};
class FightGroupOverlay
{
public:
FightGroupOverlay(PlayerNum aiPlayerNum, int humanPlayerCount);
virtual void Initialize(MAP_RECT guardedRect, std::vector<Unit> vehicleFactories);
bool IsFull();
protected:
const PlayerNum aiPlayerNum;
const std::size_t humanPlayerCount;
std::vector<Unit> vehicleFactories;
void AddTank(map_id tankType, map_id weapon);
void ClearTargetCount();
void SetTankCounts(const std::vector<TargetTankCount>& targetTankCounts);
void SetLynxCount(map_id weaponType, int targetCount);
void SetPantherCount(map_id weaponType, int targetCount);
void SetTigerCount(map_id weaponType, int targetCount);
void SetScorpionCount(int targetCount);
MAP_RECT GetGuardedRect();
int GetFightGroupCount();
void BasicAttack();
FightGroup GetFightGroup();
int targetCount;
private:
MAP_RECT guardedRect;
BuildingGroup buildingGroup;
FightGroup fightGroup;
};