BWAPI
Public Member Functions | Protected Attributes
Subgoal Class Reference

#include <Subgoal.h>

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

List of all members.

Public Member Functions

 Subgoal (SubgoalLogic l, UnitsGroup *ug)
 Subgoal (SubgoalLogic l)
 Subgoal (const Subgoal &sg)
virtual ~Subgoal ()
SubgoalLogic getLogic () const
void setUnitsGroup (UnitsGroup *ug)
virtual bool isRealized ()=0
virtual void tryToRealize ()=0
virtual double distanceToRealize ()=0

Protected Attributes

SubgoalLogic _logic
UnitsGroup_unitsGroup

Detailed Description

Note to self: This class should _not_ have _unitsGroup (think shortcut Kill subgoals) but I would like all Subgoals to be able to _do something_ so that they don't get stuck unrealized. So shortcuts send distanceToRealize() = -1 but _can_ tryToRealize()


Constructor & Destructor Documentation

Subgoal::Subgoal ( const Subgoal sg)
Subgoal::~Subgoal ( ) [virtual]

Member Function Documentation

virtual double Subgoal::distanceToRealize ( ) [pure virtual]
virtual bool Subgoal::isRealized ( ) [pure virtual]
virtual void Subgoal::tryToRealize ( ) [pure virtual]

Member Data Documentation


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