CRaPI - Correct Robust and Perfect API

PlayMode Enumeration

A type-safe representation of the different play modes.

public enum PlayMode

Remarks

By giving the different playmodes the same name as the server uses, it is possible to do a string-comparison.

Members

Member NameDescription
before_kick_offAt the beginning of a half. Subsequent play mode (0 cycles): kick_off_l | kick_off_r
corner_kick_lLeft team has a corner kick
corner_kick_rRight team has a corner kick
drop_ballSubsequent play mode (0 cycles): play_on
free_kick_lLeft team has a free kick
free_kick_rRight team has a free kick
goal_kick_lPlay mode changes once the ball leaves the penalty area. Subsequent play mode: play_on
goal_kick_rPlay mode changes once the ball leaves the penalty area. Subsequent play mode: play_on
goal_lGoal for left team. Subsequent play mode (50 cycles): kick_off_r
goal_rGoal for right team. Subsequent play mode (50 cycles): kick_off_l
kick_in_lLeft team has a kick in
kick_in_rRight team has a kick in
kick_off_lAnnounce start of play where left team have the kick off (after pressing the Kick Off button in the monitor)
kick_off_rAnnounce start of play where right team have the kick off (after pressing the Kick Off button in the monitor)
noneThe playmode is unknown, not set, or could not be parsed from the last referee message.
offside_lSubsequent play mode (30 cycles): free_kick_r
offside_rSubsequent play mode (30 cycles): free_kick_l
play_onDuring normal play
time_overEnd of game

Requirements

Namespace: TeamYaffa.CRaPI

Assembly: CRaPI (in CRaPI.dll)

See Also

TeamYaffa.CRaPI Namespace