BWAPI
|
#include <UnitSetup.h>
Public Member Functions | |
UnitSetup () | |
bool | equals (UnitType mType) |
Static Public Member Functions | |
static bool | equals (UnitType t1, UnitType t2) |
Public Attributes | |
UnitType | type |
int | no |
int | current |
This class is used by the Squad class to handle the number of units of a specified type is in the squad.
Author: Johan Hagelback (johan.hagelback@gmail.com)
Default constructor.
bool UnitSetup::equals | ( | UnitType | mType | ) |
Checks if this setup equals to the specified type.
bool UnitSetup::equals | ( | UnitType | t1, |
UnitType | t2 | ||
) | [static] |
Checks if unittypes matches. Needed for morphing units like Siege Tanks and Lurkers.
Current number of the unit.
int UnitSetup::no |
Wanted number of the unit.
Type of unit.