public interface ControllerCoach
Modifier and Type | Method and Description |
---|---|
ActionsCoach |
getCoach()
Returns the current instance of ActionsCoach.
|
void |
infoCPTOther(int unum)
The controller is informed when the change player type message is received.
|
void |
infoCPTOwn(int unum,
int type)
The controller is informed when the change player type message is received.
|
void |
infoHearError(Errors error)
The coach is informed when it hears an error message.
|
void |
infoHearOk(Ok ok)
The coach 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 observer is informed when a play mode message is broadcast.
|
void |
infoHearReferee(RefereeMessage refereeMessage)
The observer is informed when a referee message is broadcast.
|
void |
infoHearTeamNames(String teamWest,
String teamEast)
The controller is informed of the connected teams names.
|
void |
infoHearWarning(Warning warning)
The coach is informed when it hears a warning.
|
void |
infoPlayerParam(double allowMultDefaultType,
double dashPowerRateDeltaMax,
double dashPowerRateDeltaMin,
double effortMaxDeltaFactor,
double effortMinDeltaFactor,
double extraStaminaDeltaMax,
double extraStaminaDeltaMin,
double inertiaMomentDeltaFactor,
double kickRandDeltaFactor,
double kickableMarginDeltaMax,
double kickableMarginDeltaMin,
double newDashPowerRateDeltaMax,
double newDashPowerRateDeltaMin,
double newStaminaIncMaxDeltaFactor,
double playerDecayDeltaMax,
double playerDecayDeltaMin,
double playerTypes,
double ptMax,
double randomSeed,
double staminaIncMaxDeltaFactor,
double subsMax)
The coach is informed when the player param message is received.
|
void |
infoPlayerType(int id,
double playerSpeedMax,
double staminaIncMax,
double playerDecay,
double inertiaMoment,
double dashPowerRate,
double playerSize,
double kickableMargin,
double kickRand,
double extraStamina,
double effortMax,
double effortMin)
The coach is informed when the player type message is received.
|
void |
infoSeeBall(double x,
double y,
double deltaX,
double deltaY)
The controller is informed that the Ball is in sight.
|
void |
infoSeeGoalOther(double x,
double y)
The controller is informed when an opposing goal is seen.
|
void |
infoSeeGoalOwn(double x,
double y)
The controller is informed when its own goal is seen.
|
void |
infoSeePlayerOther(int number,
boolean goalie,
double x,
double y,
double deltaX,
double deltaY,
double bodyAngle,
double neckAngle)
The controller is informed when an opposing player is seen.
|
void |
infoSeePlayerOwn(int number,
boolean goalie,
double x,
double y,
double deltaX,
double deltaY,
double bodyAngle,
double neckAngle)
The controller is informed when one of its own players is seen.
|
void |
infoServerParam(HashMap<ServerParams,Object> info)
The controller is informed when the server param message is received.
|
void |
setCoach(ActionsCoach c)
Sets the coach that the controller is controlling.
|
void infoSeePlayerOwn(int number, boolean goalie, double x, double y, double deltaX, double deltaY, double bodyAngle, double neckAngle)
number
- The players uniform number.goalie
- Is the player a goalie?x
- The players x coordinate.y
- The players y coordinate.deltaX
- The players change of speed on the x plane.deltaY
- The players change of speed on the y plane.bodyAngle
- The players body angle.neckAngle
- The players neck angle.void infoSeePlayerOther(int number, boolean goalie, double x, double y, double deltaX, double deltaY, double bodyAngle, double neckAngle)
number
- The players uniform number.goalie
- Is the player a goalie?x
- The players x coordinate.y
- The players y coordinate.deltaX
- The players change of speed on the x plane.deltaY
- The players change of speed on the y plane.bodyAngle
- The players body angle.neckAngle
- The players neck angle.void infoSeeGoalOwn(double x, double y)
x
- The x coordinate of the center of the goal.y
- The y coordinate of the center of the goal.void infoSeeGoalOther(double x, double y)
x
- The x coordinate of the center of the goal.y
- The y coordinate of the center of the goal.void infoSeeBall(double x, double y, double deltaX, double deltaY)
x
- The x coordinate of the ball.y
- The y coordinate of the ball.deltaX
- The balls change in speed on the x plane.deltaY
- The balls change in speed on the y plane.void infoHearTeamNames(String teamWest, String teamEast)
teamWest
- The name of the west team.teamEast
- The name of the east team.void 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 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 infoHearPlayer(double direction, String message)
direction
- The direction from which the message originated.message
- The actual message said.void 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.void infoPlayerType(int id, double playerSpeedMax, double staminaIncMax, double playerDecay, double inertiaMoment, double dashPowerRate, double playerSize, double kickableMargin, double kickRand, double extraStamina, double effortMax, double effortMin)
id
- a int.playerSpeedMax
- a double.staminaIncMax
- a double.playerDecay
- a double.inertiaMoment
- a double.dashPowerRate
- a double.playerSize
- a double.kickableMargin
- a double.kickRand
- a double.extraStamina
- a double.effortMax
- a double.effortMin
- a double.void infoCPTOwn(int unum, int type)
unum
- The players uniform number.type
- The players type.void infoCPTOther(int unum)
unum
- The players uniform number.void infoPlayerParam(double allowMultDefaultType, double dashPowerRateDeltaMax, double dashPowerRateDeltaMin, double effortMaxDeltaFactor, double effortMinDeltaFactor, double extraStaminaDeltaMax, double extraStaminaDeltaMin, double inertiaMomentDeltaFactor, double kickRandDeltaFactor, double kickableMarginDeltaMax, double kickableMarginDeltaMin, double newDashPowerRateDeltaMax, double newDashPowerRateDeltaMin, double newStaminaIncMaxDeltaFactor, double playerDecayDeltaMax, double playerDecayDeltaMin, double playerTypes, double ptMax, double randomSeed, double staminaIncMaxDeltaFactor, double subsMax)
allowMultDefaultType
- a double.dashPowerRateDeltaMax
- a double.dashPowerRateDeltaMin
- a double.effortMaxDeltaFactor
- a double.effortMinDeltaFactor
- a double.extraStaminaDeltaMax
- a double.extraStaminaDeltaMin
- a double.inertiaMomentDeltaFactor
- a double.kickRandDeltaFactor
- a double.kickableMarginDeltaMax
- a double.kickableMarginDeltaMin
- a double.newDashPowerRateDeltaMax
- a double.newDashPowerRateDeltaMin
- a double.newStaminaIncMaxDeltaFactor
- a double.playerDecayDeltaMax
- a double.playerDecayDeltaMin
- a double.playerTypes
- a double.ptMax
- a double.randomSeed
- a double.staminaIncMaxDeltaFactor
- a double.subsMax
- a double.void infoServerParam(HashMap<ServerParams,Object> info)
info
- A hashmap containing all the server param details.void setCoach(ActionsCoach c)
c
- The ActionsCoach to control.ActionsCoach getCoach()
Copyright © 2003–2015 Atan. All rights reserved.