From 3c5e9b6f957181568c0d5f66c753a56e40c97275 Mon Sep 17 00:00:00 2001 From: Axel Gard <axega544@student.liu.se> Date: Wed, 4 Nov 2020 14:52:14 +0100 Subject: [PATCH] added get enemy units --- src/IDABot.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/IDABot.cpp b/src/IDABot.cpp index 10c29c1..0de9773 100644 --- a/src/IDABot.cpp +++ b/src/IDABot.cpp @@ -164,6 +164,11 @@ const std::vector<Unit> & IDABot::GetMyUnits() const return UnitInfo().getUnits(Players::Self); } +const std::vector<Unit> & IDABot::GetEnemyUnits() const +{ + return UnitInfo().getUnits(Players::enemy); +} + const std::vector<Unit> IDABot::GetUnits(const UnitType & type, int player) const { std::vector<Unit> units; -- GitLab