#include <BaseApi.hh>
Public Member Functions | |
| BaseApi (T *rules) | |
| void | setEventHandler (Event *evp) |
| Set the class (usually, in the GUI) that will receive rules event. | |
| int | getState () const |
| Get the current game state. | |
| const char * | getStateString () const |
| Get the current game state, stringinfied. | |
| int | getTeamId () const |
| Get the team id [0..nbTeams-1]. | |
| int | getTeamNumber () const |
| Get the number of real team (spectators not counted) that are playing. | |
| bool | isBusy () const |
| Check if the rules is processing some command, or if it safe to send the next one in a sequence. | |
Protected Attributes | |
| T * | rules_ |
| Contest CRules. | |
| int BaseApi< T >::getState | ( | ) | const [inline] |
Get the current game state.
| bool BaseApi< T >::isBusy | ( | ) | const [inline] |
Check if the rules is processing some command, or if it safe to send the next one in a sequence.
Set the class (usually, in the GUI) that will receive rules event.
This class must inherit from Event.
1.4.7