33 lines
548 B
C
33 lines
548 B
C
|
#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;
|
||
|
};
|