2023-04-10 23:31:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <BWAPI.h>
|
|
|
|
#include "CBase.h"
|
|
|
|
#include "CUnit.h"
|
|
|
|
#include "Macro.h"
|
|
|
|
|
|
|
|
using namespace BWAPI;
|
|
|
|
|
|
|
|
class CBase;
|
|
|
|
class CUnit;
|
|
|
|
|
|
|
|
class CMap
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static TilePosition getAreaAverage(const BWEM::Area* area);
|
|
|
|
static TilePosition getAreaAverage(const BWEM::Area area);
|
2023-04-12 02:21:27 +00:00
|
|
|
static TilePosition getChokepointCenter(const BWEM::Area* area, const BWEM::Area* neighborArea);
|
2023-04-11 17:56:09 +00:00
|
|
|
static std::vector<const BWEM::Area*> getPath(const BWEM::Area* a1, const BWEM::Area* a2);
|
|
|
|
static std::vector<const BWEM::Area*> reconstructPath(std::map<const BWEM::Area*, const BWEM::Area*> cameFrom, const BWEM::Area* current);
|
2023-04-10 23:31:02 +00:00
|
|
|
};
|