Laser Squad Nemesis Tournament Administrator System |
|
|
GAME OVER CALLBACKSWhen a game is finished or aborted the tournament system will call the url you supplied to us with a set of data. There are two conditions triggering a callback, a 'start abort' and 'game over', which are identified by the variable ‘data_type’. START ABORTThis occurs when one or both players have failed to deploy within the ‘response_deadline’ time limit. Data supplied in the callback: data_type ‘start_abort’ If one player fails to deploy you can decide that this player loses by default, as in the knockout tournaments. However, if both players fail to deploy then you need to take some other action. For example, the knockout tournaments system creates a bye in the next round, giving automatic vitory to the player who was due to play the winner. GAME OVERThis occurs when a game is finished with a definite result. data_type ‘game_over’ CALLBACK FAILUREIf the callback fails for some reason then you need to be able to take some kind of remedial action, either manually or automatically. You can access a list of callback failures which includes all the data sent in the callback. See informational functions for more details. TRACKING YOUR GAMESIn order to process your games properly you will need to store the following information when you start a game: game_id The identification number of the game. Your ‘game over’ callback handler will then be able to use this data to identify a winner for a particular game.
|