Message handler for SPlayer.Forwards messages to requested player, send messages as requested. Checks player existence and game state before forwarding to player. More...
#include <SPlayerMsg.hh>
Public Member Functions | |
| SPlayerMsg (SRules *r) | |
| void | setPlayer (int team_id, int player_id, SPlayer *p) |
| void | sendAction (enum eAction action, const SPlayer *p) const |
| void | sendMsgBlockPush (int nb_squares, const Coordinates squares[], const SPlayer *target, int chosen_square) const |
| void | sendBlockResult (bool can_reroll, int dice_chooser_id, int nb_dices, const enum eBlockDiceFace results[], const SPlayer *defender, const SPlayer *attacker) const |
| void | sendMsgKnocked (const SPlayer *p) const |
| void | sendCoordinates (const Coordinates &old_coord, const SPlayer *p) const |
| void | sendMaRemain (int old_ma_remain, int new_ma_remain, const SPlayer *p) const |
| void | sendRoll (enum eRoll type, int result, int modifier, int required, int reroll, enum eSkill skill, const SPlayer *p) const |
| void | sendSkillQuestion (enum eSkill skill, const SPlayer *p) const |
| void | sendSkillUsage (enum eSkill skill, const SPlayer *p) const |
| void | sendStatus (enum eStatus old_status, enum eStatus new_status, const SPlayer *p) const |
| void | sendTouchdooown (const SPlayer *p) const |
Message handler for SPlayer.
Forwards messages to requested player, send messages as requested. Checks player existence and game state before forwarding to player.
You will have only one instance of this class at runtime, handled by the SRules class.
1.6.3