A type-safe representation of the different play modes.
By giving the different playmodes the same name as the server uses, it is possible to do a string-comparison.
Member Name | Description |
---|---|
before_kick_off | At the beginning of a half. Subsequent play mode (0 cycles):
kick_off_l | kick_off_r |
corner_kick_l | Left team has a corner kick |
corner_kick_r | Right team has a corner kick |
drop_ball | Subsequent play mode (0 cycles): play_on |
free_kick_l | Left team has a free kick |
free_kick_r | Right team has a free kick |
goal_kick_l | Play mode changes once the ball leaves the penalty area.
Subsequent play mode: play_on |
goal_kick_r | Play mode changes once the ball leaves the penalty area.
Subsequent play mode: play_on |
goal_l | Goal for left team.
Subsequent play mode (50 cycles): kick_off_r |
goal_r | Goal for right team.
Subsequent play mode (50 cycles): kick_off_l |
kick_in_l | Left team has a kick in |
kick_in_r | Right team has a kick in |
kick_off_l | Announce start of play where left team have the kick off
(after pressing the Kick Off button in the monitor) |
kick_off_r | Announce start of play where right team have the kick off
(after pressing the Kick Off button in the monitor) |
none | The playmode is unknown, not set, or could not be parsed from the last referee message. |
offside_l | Subsequent play mode (30 cycles): free_kick_r |
offside_r | Subsequent play mode (30 cycles): free_kick_l |
play_on | During normal play |
time_over | End of game |
Namespace: TeamYaffa.CRaPI
Assembly: CRaPI (in CRaPI.dll)