BTHAI 2.3
Public Member Functions
KiteSquad Class Reference

#include <KiteSquad.h>

Inheritance diagram for KiteSquad:
Squad

List of all members.

Public Member Functions

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

Detailed Description

This is the same as RushSquad, except that agents kite enemy units once they have been attacked.

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


Constructor & Destructor Documentation

KiteSquad::KiteSquad ( int  mId,
string  mName,
int  mMoveType,
int  mPriority 
)

Constructor. See Squad.h for more details.


Member Function Documentation

void KiteSquad::clearGoal ( ) [virtual]

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

Reimplemented from Squad.

void KiteSquad::computeActions ( ) [virtual]

Called each update to issue orders.

Reimplemented from Squad.

TilePosition KiteSquad::getGoal ( ) [virtual]

Returns the current goal of this Squad.

Reimplemented from Squad.

bool KiteSquad::hasGoal ( ) [virtual]

Returns true if this squad has an assigned goal.

Reimplemented from Squad.

bool KiteSquad::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 KiteSquad::printInfo ( ) [virtual]

Prints some info about the squad.

Reimplemented from Squad.

void KiteSquad::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