BWAPI
Public Types | Public Member Functions
Arbitration Class Reference

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>

List of all members.

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.

Detailed Description

The arbitration is in charge of resolving actions conflicts. This class is named "Arbitration" instead of "Arbitrator" to avoid name conflicts with BWSAL.


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

void Arbitration::onEnd ( ) [inline]

Here is the caller graph for this function:

void Arbitration::onFrame ( ) [inline]

Here is the caller graph for this function:

void Arbitration::onStart ( ) [inline]

Here is the caller graph for this function:

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.

Parameters:
unitthe unit which is to accomplish the action.
actionthe action to accomplish.
importancedetails about the importance of the action.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
groupthe group of units which is to accomplish the action.
actionthe action to accomplish.
importancedetails about the importance of the action.

Here is the call graph for this function:


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