BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
BWAPI::TournamentModule Class Reference

#include <AIModule.h>

Inheritance diagram for BWAPI::TournamentModule:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TournamentModule ()
virtual ~TournamentModule ()
virtual bool onAction (int actionType, void *parameter=NULL)
virtual void onFirstAdvertisement ()

Constructor & Destructor Documentation


Member Function Documentation

bool BWAPI::TournamentModule::onAction ( int  actionType,
void *  parameter = NULL 
) [virtual]

BWAPI calls this any time some Game-related functions are called. Return true to allow them, or false to disallow them. This includes functions like Game::pauseGame and Game::enableFlag.

BWAPI calls this when this module was the first to send out its tournament advertisement. It can prevent both modules from performing the same task if it's necessary.

Here is the caller graph for this function:


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