BWAPI
|
#include <AvoidNukeGoal.h>
Public Member Functions | |
AvoidNukeGoal (BWAPI::Position target) | |
void | achieve () |
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() /!\/
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.