STeam Class Reference
[Server Rules]

Team management for the server.It symbolizes team and checks the validity of coach's decisions (reroll and block dices). More...

#include <STeam.hh>

Inheritance diagram for STeam:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 STeam (int team_id, SRules *r, SMatch *m, SPlayerMsg *pm)
bool isValid () const
 Check if the team is valid enough to start the game.
bool canBeginAction (const MsgAction *pkt)
bool canEndAction (const MsgAction *pkt)
bool canDoEffort (const Packet *pkt, SPlayer *p)
 Check if this player can do this effort.
void resetTurn ()
void setProneStunned ()
void prepareKickoff ()
SPlayergetActivePlayer () const
 Shortcut for getPlayer(getActivePlayerId()).
void unsetActivePlayer ()
 Unset active player (on forced end of action).
void setPusher (SPlayer *p)
 Set current pusher (not necessarily from this team).
void setNbChoices (int nb)
void msgTeamInfo (const MsgTeamInfo *m)
void msgPlayerCreate (const MsgPlayerCreate *m)
void msgReroll (const MsgReroll *m)
void msgBlockDice (const MsgBlockDice *m)
void msgFollow (const MsgFollow *m)
void msgBlockPush (const MsgBlockPush *m)

Public Attributes

int state_
 Team state on client side.

Detailed Description

Team management for the server.

It symbolizes team and checks the validity of coach's decisions (reroll and block dices).

You will have 2 instances of this class at runtime, handled by the SRules class.


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