kora-bot/Source/CUnit.h

33 lines
548 B
C
Raw Normal View History

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;
void initialize();
bool isIdle();
bool isInSquad();
int id;
BWAPI::TilePosition lastSeen;
void mine(std::string action, int baseIndex);
int miningBase;
int resourceType;
int resourceVal;
BWAPI::TilePosition target;
BWAPI::UnitType targetUnit;
TilePosition tilePosition;
BWAPI::Unit unit;
BWAPI::UnitType unitType;
};