BWAPI
|
The arbitration is in charge of resolving actions conflicts. This class is named "Arbitration" instead of "Arbitrator" to avoid name conflicts with BWSAL. More...
#include <Arbitrator.h>
Public Types | |
typedef ArbitratorUnitData::ActionImportance | ActionImportance |
Public Member Functions | |
Arbitration () | |
~Arbitration () | |
void | onStart () |
void | onFrame () |
void | onEnd () |
void | submitAction (BWAPI::Unit *unit, const LowLevelAction &action, ActionImportance importance) |
Submits an action to the arbitration to be accomplished by the specified unit. | |
void | submitAction (const PersistentUnitGroup *group, const LowLevelAction &action, ActionImportance importance) |
Submits an action to the arbitration to be accomplished by the specified group of units. |
The arbitration is in charge of resolving actions conflicts. This class is named "Arbitration" instead of "Arbitrator" to avoid name conflicts with BWSAL.
Arbitration::Arbitration | ( | ) | [inline] |
Arbitration::~Arbitration | ( | ) | [inline] |
void Arbitration::onEnd | ( | ) | [inline] |
void Arbitration::onFrame | ( | ) | [inline] |
void Arbitration::onStart | ( | ) | [inline] |
void Arbitration::submitAction | ( | BWAPI::Unit * | unit, |
const LowLevelAction & | action, | ||
ActionImportance | importance | ||
) | [inline] |
Submits an action to the arbitration to be accomplished by the specified unit.
unit | the unit which is to accomplish the action. |
action | the action to accomplish. |
importance | details about the importance of the action. |
void Arbitration::submitAction | ( | const PersistentUnitGroup * | group, |
const LowLevelAction & | action, | ||
ActionImportance | importance | ||
) | [inline] |
Submits an action to the arbitration to be accomplished by the specified group of units.
group | the group of units which is to accomplish the action. |
action | the action to accomplish. |
importance | details about the importance of the action. |