Event Class Reference
[Client API]

Base UI events class.Derive from this class and virtual methods will be called... when time will come. More...

#include <Event.hh>

Inheritance diagram for Event:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void evIllegal (int team_id, int was_token, enum eError error)
 An illegal token (sent by a client) has been spotted by the server.
virtual void evChat (int coach_id, const std::string &msg)
 A chat message has been received.
virtual void evInitGame ()
 Both coaches and arbiter are ready.
virtual void evCelebration ()
 Post-match celebration.
virtual void evEndGame ()
 Game ends, according to the rules.
virtual void evCancelGame (int)
 Game is cancelled, according to the rules.
virtual void evHalf (int half)
 A new half begins.
virtual void evDrawKicker (int team_id, bool is_a_question)
 Coach is drawn to choose to either kick or receive the ball.
virtual void evPlaceTeam (int team_id)
 A team is asked to enter into the field.
virtual void evKickOff (int team_id)
 A team is asked to kick the ball off.
virtual void evTouchBack (int team_id)
 A coach is asked to give the ball to one of his player.
virtual void evNewTurn (int team_id, int cur_half, int cur_turn)
 A new turn begins.
virtual void evMoveTurnMarker ()
 Current coach moves his turn marker.
virtual void evTurnOver (enum eTurnOverMotive motive)
 A turnover happens.
virtual void evTouchdooown (int team_id, int player_id)
 A touchdooown is scored.
virtual void evEndTurn (int team_id)
 A turn ends.
virtual void evTimer (bool pause)
 Timer gets paused or started.
virtual void evBallCoord (const Coordinates &old_coord, const Coordinates &new_coord)
 Ball coordinates changed.
virtual void evBallOwner (int old_team_id, int old_player_id, int team_id, int player_id)
 Ball owner changed.
virtual void evPlayerCreate (int team_id, int player_id)
 A player is created (at the very beginning of the game).
virtual void evPlayerMaRemain (int team_id, int player_id, int old_ma_remain, int new_ma_remain)
 A player movement allowance remaining changed.
virtual void evPlayerStatus (int team_id, int player_id, enum eStatus old_status, enum eStatus status)
 A player status changed.
virtual void evPlayerCoord (int team_id, int player_id, const Coordinates &old_coord, const Coordinates &new_coord)
 A player coordinates changed.
virtual void evPlayerKnocked (int team_id, int player_id)
 A player is knocked down to the ground.
virtual void evAction (int team_id, int player_id, enum eAction action)
 A player begins an action.
virtual void evEffort (int team_id, int player_id, enum eEffort effort, const Coordinates &to)
 A player performs an effort.
virtual void evRequestProcessed (int team_id)
 An effort was processed.
virtual void evResult (int team_id, int player_id, enum eRoll roll_type, int result, int modifier, int required, bool reroll, enum eSkill skill)
 Dice roll result associated to a player, often agility roll.
virtual void evBlockResult (int team_id, int player_id, int opponent_player_id, int nb_dices, enum eBlockDiceFace result[3], int dice_chooser_id, bool reroll)
 Block dices roll result.
virtual void evBlockDice (int team_id, int dice)
 Block dices choice.
virtual void evBlockPush (int team_id, const Coordinates &coord, int nb_squares, const Coordinates squares[], int chosen_square)
 A player pushes another, due to a block.
virtual void evFollow (int team_id, int follow)
 A player is asked to follow or not the player he pushed.
virtual void evReroll (int team_id, bool reroll)
 A coach decided to use (or not) a team reroll.
virtual void evSkill (int team_id, int player_id, enum eSkill skill, int choice)
 A player used one of his skill.

Detailed Description

Base UI events class.

Derive from this class and virtual methods will be called... when time will come.


Member Function Documentation

virtual void Event::evMoveTurnMarker (  )  [inline, virtual]

Current coach moves his turn marker.

Attention:
FIXME: NEVER CALLED FOR NOW

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