An API for interacting with Starcraft: Broodwar (1.16.1)
|virtual bool||onAction (BWAPI::Tournament::ActionID actionType, void *parameter=nullptr)|
|virtual void||onFirstAdvertisement ()|
This function regulates the functions involving game settings that an AI module is allowed to execute.
For example, if the tournament forbids the enabling of Flag::CompleteMapInformation, then this function can deny the request.
|actionType||An ActionID containing the action that the AI module is requesting.|
|parameter||An optional parameter that pertains to certain action requests. For example, if |
This function is called if the current player is chosen to advertise the BWAPI revision.
When tournament mode is enabled, to reduce spam, only one bot sends the revision message. The bot that is chosen depends on its player ID. Only one of the bots can call this function during a tournament game.