kora-bot/Source/BuildingPlacement.h

21 lines
452 B
C
Raw Normal View History

2023-04-10 23:31:02 +00:00
#pragma once
#include <BWAPI.h>
#include "CUnit.h"
#include "Macro.h"
using namespace BWAPI;
static const double x_vector = 0;
static const double y_vector = 1;
class CUnit;
class BuildingPlacement
{
public:
static bool build(CUnit unit);
static TilePosition checkBounds(TilePosition tp);
static std::vector<double> getDirection(TilePosition tp1, TilePosition tp2);
static TilePosition getPosition(BWAPI::UnitType unit);
};