Team management for the server.It symbolizes team and checks the validity of coach's decisions (reroll and block dices). More...
#include <STeam.hh>

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 () |
| SPlayer * | getActivePlayer () 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. | |
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.
1.6.3