|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrobocup.lab.intelligent.IntelligentStaticController
public class IntelligentStaticController
The Class IntelligentStaticController.
| Field Summary | |
|---|---|
private atan.model.ActionsPlayer |
player
The player. |
| Constructor Summary | |
|---|---|
IntelligentStaticController()
|
|
| Method Summary | |
|---|---|
atan.model.ActionsPlayer |
getPlayer()
Returns the current instance of the ActionsPlayer. |
java.lang.String |
getType()
Get the players type, if set. |
void |
infoHearError(atan.model.enums.Errors error)
The player is informed when it hears an error message. |
void |
infoHearOk(atan.model.enums.Ok ok)
The player is informed when it hears an ok message. |
void |
infoHearPlayer(double direction,
java.lang.String message)
The controller is informed when it hears a message from another player. |
void |
infoHearPlayMode(atan.model.enums.PlayMode playMode)
The controller is informed when a play mode message is broadcast. |
void |
infoHearReferee(atan.model.enums.RefereeMessage refereeMessage)
The controller is informed when a referee message is broadcast. |
void |
infoHearWarning(atan.model.enums.Warning warning)
The player is informed when it hears a warning. |
void |
infoSeeBall(double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that the Ball is in sight. |
void |
infoSeeFlagCenter(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed when one of the flags on the center line are in sight. |
void |
infoSeeFlagCornerOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of the other teams corner flags is in sight. |
void |
infoSeeFlagCornerOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of our teams corner flags is in sight. |
void |
infoSeeFlagGoalOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of the other teams goal flags is in sight. |
void |
infoSeeFlagGoalOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of our teams goal flags is in sight. |
void |
infoSeeFlagLeft(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed when one of the flags along the left touchline is in sight. |
void |
infoSeeFlagOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed when one of the flags behind the other teams goal is in sight. |
void |
infoSeeFlagOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed when one of the flags behind our teams goal is in sight. |
void |
infoSeeFlagPenaltyOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of the other teams penalty box flags is in sight. |
void |
infoSeeFlagPenaltyOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of our teams penalty box flags is in sight. |
void |
infoSeeFlagRight(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed when one of the flags along the right touchline is in sight. |
void |
infoSeeLine(atan.model.enums.Line line,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of the pitch lines are in sight. |
void |
infoSeePlayerOther(int number,
boolean goalie,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of the other teams players is in sight. |
void |
infoSeePlayerOwn(int number,
boolean goalie,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
The controller is informed that one of it's own team is in sight. |
void |
infoSenseBody(atan.model.enums.ViewQuality viewQuality,
atan.model.enums.ViewAngle viewAngle,
double stamina,
double unknown,
double effort,
double speedAmount,
double speedDirection,
double headAngle,
int kickCount,
int dashCount,
int turnCount,
int sayCount,
int turnNeckCount,
int catchCount,
int moveCount,
int changeViewCount)
|
private void |
pause(int ms)
Pause. |
void |
postInfo()
This is the method called one all the visual information has been processed. |
void |
preInfo()
This is the method called before the controller receives all the new visual information. |
void |
setPlayer(atan.model.ActionsPlayer p)
Sets the player that the controller is controlling. |
void |
setType(java.lang.String newType)
Set the players type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private atan.model.ActionsPlayer player
| Constructor Detail |
|---|
public IntelligentStaticController()
| Method Detail |
|---|
public atan.model.ActionsPlayer getPlayer()
atan.model.ControllerPlayer
getPlayer in interface atan.model.ControllerPlayerpublic java.lang.String getType()
atan.model.ControllerPlayer
getType in interface atan.model.ControllerPlayerpublic void infoHearError(atan.model.enums.Errors error)
atan.model.ControllerPlayer
infoHearError in interface atan.model.ControllerPlayererror - The error to handlepublic void infoHearOk(atan.model.enums.Ok ok)
atan.model.ControllerPlayer
infoHearOk in interface atan.model.ControllerPlayerok - The message to handle.public void infoHearPlayMode(atan.model.enums.PlayMode playMode)
atan.model.ControllerPlayer
infoHearPlayMode in interface atan.model.ControllerPlayerplayMode - 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_OTHER
public void infoHearPlayer(double direction,
java.lang.String message)
atan.model.ControllerPlayer
infoHearPlayer in interface atan.model.ControllerPlayerdirection - The direction from which the message originated.message - The actual message said.public void infoHearReferee(atan.model.enums.RefereeMessage refereeMessage)
atan.model.ControllerPlayer
infoHearReferee in interface atan.model.ControllerPlayerrefereeMessage - possible values: FOUL_OWN, FOUL_OTHER,
HALF_TIME, TIME_UP, TIME_UP_WITHOUT_A_TEAM,
TIME_EXTENDED, DROP_BALL, OFFSIDE_OWN, OFFSIDE_OTHERpublic void infoHearWarning(atan.model.enums.Warning warning)
atan.model.ControllerPlayer
infoHearWarning in interface atan.model.ControllerPlayerwarning - The warning to handle.
public void infoSeeBall(double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeBall in interface atan.model.ControllerPlayerdistance - The distance to the ball.direction - The direction of the ball.
public void infoSeeFlagCenter(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagCenter in interface atan.model.ControllerPlayerflag - possible values: LEFT, CENTER, RIGHTdistance - The distance to the flag.direction - The direction of the flag.
public void infoSeeFlagCornerOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagCornerOther in interface atan.model.ControllerPlayerflag - possible values: LEFT, RIGHTdistance - The distance to the flag.direction - The direction of the flag.
public void infoSeeFlagCornerOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagCornerOwn in interface atan.model.ControllerPlayerflag - possible values: LEFT, RIGHTdistance - The distance to the flag.direction - The direction of the flag.
public void infoSeeFlagGoalOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagGoalOther in interface atan.model.ControllerPlayerflag - possible values: LEFT, CENTER, RIGHTdistance - The distance to this flag.direction - The direction of the flag.
public void infoSeeFlagGoalOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagGoalOwn in interface atan.model.ControllerPlayerflag - possible values: LEFT, CENTER, RIGHTdistance - The distance to this flag.direction - The direction of the flag.
public void infoSeeFlagLeft(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagLeft in interface atan.model.ControllerPlayerflag - possible values: OWN_50, OWN_40, OWN_30, OWN_20, OWN_10, MID
OTHER_10, OTHER_20, OTHER_30, OTHER_40, OTHER_50distance - The distance to the flag.direction - The direction of the flag.
public void infoSeeFlagOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagOther in interface atan.model.ControllerPlayerflag - possible values: LEFT_10, LEFT_20, LEFT_30, MID,
RIGHT_10, RIGHT_20, RIGHT_30distance - The distance to the flag.direction - The direction of the flag.
public void infoSeeFlagOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagOwn in interface atan.model.ControllerPlayerflag - possible values: LEFT_10, LEFT_20, LEFT_30, MID,
RIGHT_10, RIGHT_20, RIGHT_30distance - The distance to the flag.direction - The direction of the flag.
public void infoSeeFlagPenaltyOther(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagPenaltyOther in interface atan.model.ControllerPlayerflag - possible values: LEFT, CENTER, RIGHTdistance - The distance to this flag.direction - The direction of this flag.
public void infoSeeFlagPenaltyOwn(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagPenaltyOwn in interface atan.model.ControllerPlayerflag - possible values: LEFT, CENTER, RIGHTdistance - The distance to this flag.direction - The direction of this flag.
public void infoSeeFlagRight(atan.model.enums.Flag flag,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeFlagRight in interface atan.model.ControllerPlayerflag - possible values: OWN_50, OWN_40, OWN_30, OWN_20, OWN_10, MID,
OTHER_10, OTHER_20, OTHER_30, OTHER_40, OTHER_50distance - The distance to the flag.direction - The direction of the flag.
public void infoSeeLine(atan.model.enums.Line line,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeeLine in interface atan.model.ControllerPlayerdistance - The distance to the line.direction - The direction of the line.
public void infoSeePlayerOther(int number,
boolean goalie,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeePlayerOther in interface atan.model.ControllerPlayernumber - The ID of the player (from 1 to 11)goalie - If the seen player is a goalie. False if unknown.distance - The distance to the player.direction - The direction of the player.
public void infoSeePlayerOwn(int number,
boolean goalie,
double distance,
double direction,
double distChange,
double dirChange,
double bodyFacingDirection,
double headFacingDirection)
atan.model.ControllerPlayer
infoSeePlayerOwn in interface atan.model.ControllerPlayernumber - The ID of the player (from 1 to 11)goalie - If the seen player is a goalie. False if unknown.distance - The distance to the player.direction - The direction of the player.
public void infoSenseBody(atan.model.enums.ViewQuality viewQuality,
atan.model.enums.ViewAngle viewAngle,
double stamina,
double unknown,
double effort,
double speedAmount,
double speedDirection,
double headAngle,
int kickCount,
int dashCount,
int turnCount,
int sayCount,
int turnNeckCount,
int catchCount,
int moveCount,
int changeViewCount)
infoSenseBody in interface atan.model.ControllerPlayerviewQuality - possible values: HIGH, LOWviewAngle - possible values: NARROW, NORMAL, WIDEpublic void postInfo()
atan.model.ControllerPlayer
postInfo in interface atan.model.ControllerPlayerpublic void preInfo()
atan.model.ControllerPlayer
preInfo in interface atan.model.ControllerPlayerpublic void setPlayer(atan.model.ActionsPlayer p)
atan.model.ControllerPlayer
setPlayer in interface atan.model.ControllerPlayerp - ActionsPlayer.public void setType(java.lang.String newType)
atan.model.ControllerPlayer
setType in interface atan.model.ControllerPlayernewType - what the type will now beprivate void pause(int ms)
ms - the ms
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||