2023-04-10 23:31:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <BWAPI.h>
|
|
|
|
#include "Macro.h"
|
|
|
|
|
|
|
|
using namespace BWAPI;
|
|
|
|
class CBase;
|
|
|
|
class Player;
|
|
|
|
|
|
|
|
class CUnit
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
CUnit();
|
|
|
|
CUnit(BWAPI::Unit unit);
|
|
|
|
|
|
|
|
std::string action;
|
2023-04-11 17:56:09 +00:00
|
|
|
int id;
|
2023-04-10 23:31:02 +00:00
|
|
|
void initialize();
|
|
|
|
bool isIdle();
|
|
|
|
bool isInSquad();
|
2023-04-11 17:56:09 +00:00
|
|
|
bool isMining();
|
|
|
|
bool isScout;
|
2023-04-10 23:31:02 +00:00
|
|
|
BWAPI::TilePosition lastSeen;
|
|
|
|
void mine(std::string action, int baseIndex);
|
|
|
|
int miningBase;
|
|
|
|
int resourceType;
|
|
|
|
int resourceVal;
|
2023-04-12 04:30:14 +00:00
|
|
|
int squadIndex;
|
2023-04-10 23:31:02 +00:00
|
|
|
BWAPI::TilePosition target;
|
|
|
|
BWAPI::UnitType targetUnit;
|
|
|
|
TilePosition tilePosition;
|
|
|
|
BWAPI::Unit unit;
|
|
|
|
BWAPI::UnitType unitType;
|
2023-04-12 04:30:14 +00:00
|
|
|
void unsetTargetUnit();
|
2023-04-10 23:31:02 +00:00
|
|
|
};
|