-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZergHell.h
34 lines (33 loc) · 891 Bytes
/
ZergHell.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <map>
struct ZergHell {
public:
void onFrame();
ZergHell();
private:
int armyResourceID = 1;
int armyResourceIDMax = 1;
void assignIdleWorkers();
bool attack = false;
std::map<int, BWAPI::TilePosition> baseLocations;
void build(BWAPI::UnitType type);
BWAPI::Unit buildDrone = nullptr;
bool canAfford(BWAPI::UnitType type);
bool canAfford(BWAPI::UpgradeType type);
void checkArmy();
void checkBuildDrone();
void checkBuildings();
void checkEggs();
void checkEnemyBuildings();
void checkScout();
void debugDraws();
BWAPI::Position defensePoint;
BWAPI::Unit detector = nullptr;
std::map<BWAPI::TilePosition, BWAPI::UnitType> fogOfWarBuildings;
void morphLarva();
bool needSupply();
BWAPI::Unit scout = nullptr;
BWAPI::Player self;
std::map<BWAPI::TilePosition, bool> startLocations;
int clearBuildDroneCounter = 0;
};