BTHAI 2.3
Public Member Functions
ShuttleSquad Class Reference

#include <ShuttleSquad.h>

Inheritance diagram for ShuttleSquad:
Squad

List of all members.

Public Member Functions

 ShuttleSquad (int mId, string mName, int mPriority, bool mIsBaseHarass)
bool isActive ()
void computeActions ()
void setGoal (TilePosition mGoal)
void clearGoal ()
TilePosition getGoal ()
bool hasGoal ()
void printInfo ()

Detailed Description

This is a special squad used to handle Protoss Shuttles carrying and dropping off Reavers.

Author: Johan Hagelback (johan.hagelback@gmail.com)


Constructor & Destructor Documentation

ShuttleSquad::ShuttleSquad ( int  mId,
string  mName,
int  mPriority,
bool  mIsBaseHarass 
)

Creates a Shuttle squad with a unique id and a name (for example AirAttackSquad, MainGroundSquad).


Member Function Documentation

void ShuttleSquad::clearGoal ( ) [virtual]

Clears the goal for this Squad, i.e. sets the goal to TilePosition(-1,-1).

Reimplemented from Squad.

void ShuttleSquad::computeActions ( ) [virtual]

Called each update to issue orders.

Reimplemented from Squad.

TilePosition ShuttleSquad::getGoal ( ) [virtual]

Returns the current goal of this Squad.

Reimplemented from Squad.

bool ShuttleSquad::hasGoal ( ) [virtual]

Returns true if this squad has an assigned goal.

Reimplemented from Squad.

bool ShuttleSquad::isActive ( ) [virtual]

Returns true if this Squad is active, or false if not. A Squad is active when it first has been filled with agents. A Squad with destroyed units are still considered Active.

Reimplemented from Squad.

void ShuttleSquad::printInfo ( ) [virtual]

Prints some info about the squad.

Reimplemented from Squad.

void ShuttleSquad::setGoal ( TilePosition  mGoal) [virtual]

Sets the goal for this Squad.

Reimplemented from Squad.


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