2023-04-10 23:31:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <BWAPI.h>
|
|
|
|
#include "CUnit.h"
|
|
|
|
|
|
|
|
using namespace BWAPI;
|
|
|
|
|
|
|
|
class Squad//alah, we are off
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Squad();
|
|
|
|
|
|
|
|
std::string action;
|
|
|
|
int airDamage;
|
|
|
|
BWAPI::TilePosition center;
|
|
|
|
int groundDamage;
|
|
|
|
BWAPI::TilePosition target;
|
|
|
|
std::vector<CUnit> units;
|
|
|
|
|
|
|
|
void addUnit(CUnit unit);
|
2023-04-11 17:56:09 +00:00
|
|
|
void attack(std::pair<TilePosition, int> baseToAttack);;
|
2023-04-10 23:31:02 +00:00
|
|
|
bool contains(CUnit unit);
|
|
|
|
bool containsType(UnitType ut);
|
2023-04-12 04:30:14 +00:00
|
|
|
void freeDrones();
|
2023-04-11 17:56:09 +00:00
|
|
|
void updateCenter();
|
|
|
|
void updateDamage();
|
2023-04-10 23:31:02 +00:00
|
|
|
};
|