#include "tools.hh"#include "Packet.hh"#include "PacketHandler.hh"#include "PacketHistory.hh"#include "PacketSender.hh"

Go to the source code of this file.
Classes | |
| struct | RuleDescription |
| Rule module description. More... | |
| class | BaseRules |
| Base rules class for all kind of game. More... | |
Defines | |
| #define | UID_COACH_BASE 0 |
| Base uid for coachs. | |
| #define | UID_VIEWER_BASE 100 |
| Base uid for viewers. | |
Functions | |
| DECLARE_PACKET (MSG_SYNC, MsgSync) | |
| DECLARE_PACKET (CLIENT_UID, ClientUid) | |
Variables | |
| const unsigned | MAX_TOKEN = 256 |
| Maximum number of different packets. | |
| const unsigned | BASE_TOKEN_START = MAX_TOKEN - 8 |
| Base number for specials packets. | |
| const int | GS_WAIT = 0xFFFE |
| Coach waiting for another coach. | |
| const int | GS_END = 0xFFFF |
| End of game, nothing to do anymore. | |
| const unsigned | VS_HAVEVIEWER = 0x0800 |
| If there is at least one viewer. | |
| const unsigned | VS_READY = 0x2000 |
| All viewers are ready. | |
| const unsigned | MSG_SYNC = BASE_TOKEN_START |
| END_PACKET | |
| const unsigned | CUSTOM_EVENT = BASE_TOKEN_START + 1 |
| const unsigned | CLIENT_UID = BASE_TOKEN_START + 2 |
| int | league_id |
| int | nb_coach |
| int | nb_team |
| const unsigned | BASE_TOKEN_LAST = BASE_TOKEN_START + 3 |
| const unsigned CLIENT_UID = BASE_TOKEN_START + 2 |
| const unsigned MSG_SYNC = BASE_TOKEN_START |
1.6.3