BWAPI
Public Member Functions | Static Public Member Functions | Public Attributes
UnitSetup Class Reference

#include <UnitSetup.h>

Collaboration diagram for UnitSetup:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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)


Constructor & Destructor Documentation

Default constructor.


Member Function Documentation

bool UnitSetup::equals ( UnitType  mType)

Checks if this setup equals to the specified type.

Here is the caller graph for this function:

bool UnitSetup::equals ( UnitType  t1,
UnitType  t2 
) [static]

Checks if unittypes matches. Needed for morphing units like Siege Tanks and Lurkers.

Here is the call graph for this function:


Member Data Documentation

Current number of the unit.

Wanted number of the unit.

Type of unit.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines