public interface ActionsTrainer
Modifier and Type | Method and Description |
---|---|
void |
bye()
This is used to disconnect a trainer from the server.
|
void |
changePlayerType(String teamName,
int unum,
int playerType)
This command changes a specified players type.
|
void |
changePlayMode(PlayMode playMode)
Changes the play mode of the current game.
|
void |
checkBall()
Checks the current status of the ball.
|
void |
ear(boolean earOn)
Turns on or off the sending of auditory information from the server.
|
void |
eye(boolean eyeOn)
Turns on or off the sending of "(see_global ...)" information from the server.
|
void |
handleError(String error)
The method used to show errors.
|
void |
look()
This command provides information about the positions of the following objects on the field.
|
void |
moveBall(double x,
double y)
Moves the ball to the given coordinates.
|
void |
movePlayer(ActionsPlayer p,
double x,
double y)
Moves the given player to the given location.
|
void |
recover()
Recovers the players stamina, recovery, effort and hear capacity to the values at the beginning of the game.
|
void |
say(String message)
This command broadcasts the message throughout the field.
|
void |
startGame()
Starts the game.
|
void |
teamNames()
This command provides information about the names of both teams and which side they are playing on.
|
void changePlayMode(PlayMode playMode)
playMode
- a PlayMode
object.void movePlayer(ActionsPlayer p, double x, double y)
p
- The player to move.x
- The x coordinate.y
- The y coordinate.void moveBall(double x, double y)
x
- The x coordinate.y
- The y coordinate.void checkBall()
void startGame()
void recover()
void eye(boolean eyeOn)
eyeOn
- True to turn (see_global on, false to turn it off.void ear(boolean earOn)
earOn
- True to turn auditory information on, false to turn it off.void say(String message)
message
- A valid String to say.void changePlayerType(String teamName, int unum, int playerType)
teamName
- The team the player belongs to.unum
- The players uniform number (1~11 on pitch usually, subs <= 14).playerType
- A player type between 0 (the standard player) and 18. However, player.conf can change this.void look()
void teamNames()
void bye()
void handleError(String error)
error
- The error to show.Copyright © 2003–2015 Atan. All rights reserved.