kora-bot/Source/Squad.h

27 lines
508 B
C
Raw Normal View History

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);
void attack(std::pair<TilePosition, int> baseToAttack);;
2023-04-10 23:31:02 +00:00
bool contains(CUnit unit);
bool containsType(UnitType ut);
void freeDrones();
void updateCenter();
void updateDamage();
2023-04-10 23:31:02 +00:00
};