public interface ControllerTrainer
Modifier and Type | Method and Description |
---|---|
void |
infoHearError(Errors error)
The trainer is informed when it hears an error message.
|
void |
infoHearOk(Ok ok)
The player is informed when it hears an ok message.
|
void |
infoHearPlayer(double direction,
String message)
The controller is informed when it hears a message from another player.
|
void |
infoHearPlayMode(PlayMode playMode)
The controller is informed when a play mode message is broadcast.
|
void |
infoHearReferee(RefereeMessage refereeMessage)
The controller is informed when a referee message is broadcast.
|
void |
infoHearWarning(Warning warning)
The player is informed when it hears a warning.
|
void infoHearPlayer(double direction, String message)
direction
- The direction from which the message originated.message
- The actual message said.void infoHearPlayMode(PlayMode playMode)
playMode
- possible values: BEFORE_KICK_OFF, TIME_OVER, PLAY_ON,
KICK_OFF_OWN, KICK_OFF_OTHER, FREE_KICK_OWN,
FREE_KICK_OTHER, GOAL_KICK_OWN, CORNER_KICK_OTHER,
GOAL_KICK_OWN, GOAL_KICK_OTHER, GOAL_OWN, GOAL_OTHERvoid infoHearReferee(RefereeMessage refereeMessage)
refereeMessage
- possible values: FOUL_OWN, FOUL_OTHER,
HALF_TIME, TIME_UP, TIME_UP_WITHOUT_A_TEAM,
TIME_EXTENDED, DROP_BALL, OFFSIDE_OWN, OFFSIDE_OTHERvoid infoHearError(Errors error)
error
- The error to handlevoid infoHearOk(Ok ok)
ok
- The message to handle.void infoHearWarning(Warning warning)
warning
- The warning to handle.Copyright © 2003–2015 Atan. All rights reserved.