BaseSRules Class Reference

Inheritance diagram for BaseSRules:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void sendPacket (const Packet &p)
 Send a packet to the other side.
int getViewerState () const
 Get the viewer state.
void setViewerState (int value)
 Set the viewer state.
virtual void serverStartup ()
 Called when the game is about to start, and all clients have joined (server-side only).
virtual void serverProcess ()
 Periodically called when the game is launched.
virtual void addPlayer (int client_id, int league_id)
 Called before the game is started.
virtual bool coachKilled (int coach_id, CoachErrorCustom *&cec)
 Called when a coach is disconnected.
virtual void outputStat (int coach_id, ClientStatistic &client_stat)
 Called after the game is finished, to output some game statistics.

Member Function Documentation

void BaseSRules::addPlayer ( int  client_id,
int  league_id 
) [inline, virtual]

Called before the game is started.

For each client, correspondance between client_id and league_id (ext_id) is given.

Note:
This function is called before serverStartup().
Added for prologin.
bool BaseSRules::coachKilled ( int  coach_id,
CoachErrorCustom *&  cec 
) [virtual]

Called when a coach is disconnected.

Parameters:
cec Custom data that SRules could save, it will be given on further calls to outputStat.
Note:
Added for prologin.
Returns:
true if the game should go on, false if must stop now.

Reimplemented in SRules.

void BaseSRules::outputStat ( int  coach_id,
ClientStatistic &  client_stat 
) [virtual]

Called after the game is finished, to output some game statistics.

Called for each coach.

Note:
Added for prologin.
void BaseSRules::sendPacket ( const Packet p  ) 
virtual void BaseSRules::serverStartup (  )  [inline, virtual]

Called when the game is about to start, and all clients have joined (server-side only).

Reimplemented in SRules.


The documentation for this class was generated from the following files:
Generated on Mon Apr 5 21:17:30 2010 for Stechec/TBT by  doxygen 1.6.3