BWAPI
|
#include <MedicAgent.h>
Public Member Functions | |
MedicAgent (Unit *mUnit) | |
void | computeActions () |
string | getTypeName () |
Static Public Member Functions | |
static bool | isMedicTarget (Unit *mUnit) |
The MedicAgent handles Terran Medics.
Implemented special abilities:
Author: Johan Hagelback (johan.hagelback@gmail.com)
MedicAgent::MedicAgent | ( | Unit * | mUnit | ) |
void MedicAgent::computeActions | ( | ) | [virtual] |
Called each update to issue orders.
Reimplemented from UnitAgent.
string MedicAgent::getTypeName | ( | ) | [virtual] |
Returns the unique type name for unit agents.
Reimplemented from UnitAgent.
bool MedicAgent::isMedicTarget | ( | Unit * | mUnit | ) | [static] |
Returns true if the specified own unit is a good target for the medic to follow and heal. Good targets must be biological, must be in the attack force, and must not be loaded into a building or transport.