BWAPI
Public Member Functions
AvoidNukeGoal Class Reference

#include <AvoidNukeGoal.h>

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

List of all members.

Public Member Functions

 AvoidNukeGoal (BWAPI::Position target)
void achieve ()

Constructor & Destructor Documentation

AvoidNukeGoal::AvoidNukeGoal ( BWAPI::Position  target)

Either we have detected the ghost(s) from the start and try and kill them Or we have not and we flee the nuke We assume that the detected ghost(s) around are responsible for the nuke /!\ This goal do not call _unitsGroup.update() /!\/


Member Function Documentation

void AvoidNukeGoal::achieve ( ) [virtual]

Check for the end of the Nuke

Remove killed ghosts

(We could also put potential damages in the damages map?)

Kill the ghosts

To late to try and kill the ghost (14 seconds to drop the Nuke)

Flee the nuke

Reimplemented from Goal.

Here is the call graph for this function:


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