BWAPI
Public Member Functions
ChokeHarassSquad Class Reference

#include <ChokeHarassSquad.h>

Inheritance diagram for ChokeHarassSquad:
Inheritance graph
[legend]
Collaboration diagram for ChokeHarassSquad:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChokeHarassSquad (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 squad locates a chokepoint around the enemy base and guards it to prevent the enemy from expanding.

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


Constructor & Destructor Documentation

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

Constructor. See Squad.h for more details.

Here is the call graph for this function:


Member Function Documentation

void ChokeHarassSquad::clearGoal ( ) [virtual]

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

Reimplemented from Squad.

Called each update to issue orders.

Reimplemented from Squad.

Here is the call graph for this function:

Returns the current goal of this Squad.

Reimplemented from Squad.

bool ChokeHarassSquad::hasGoal ( ) [virtual]

Returns true if this squad has an assigned goal.

Reimplemented from Squad.

Here is the call graph for this function:

bool ChokeHarassSquad::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.

Here is the caller graph for this function:

void ChokeHarassSquad::printInfo ( ) [virtual]

Prints some info about the squad.

Reimplemented from Squad.

Here is the call graph for this function:

void ChokeHarassSquad::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 Namespaces Files Functions Variables Enumerations Enumerator Defines