BTHAI 2.3
Public Member Functions | Static Public Member Functions | Public Attributes
UnitSetup Class Reference

#include <UnitSetup.h>

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

UnitSetup::UnitSetup ( )

Default constructor.


Member Function Documentation

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.


Member Data Documentation

Current number of the unit.

Wanted number of the unit.

UnitType UnitSetup::type

Type of unit.


The documentation for this class was generated from the following files:
 All Classes Functions Variables