Inheritance diagram for RCWorld::
Public Methods | |
RCWorld (RCLog Log) | |
Constructor. More... | |
void | setBrain (RCBrain Brain) |
Sets the strategy component of the player. More... | |
void | setDisplay (RCDisplay Display) |
set the visualisation component of the player. More... | |
synchronized void | receiveEvent (LinkedList Events) |
This function get a list full of RCEvent* 's. More... | |
void | calculatePosition () |
RCObject | getOurself () |
get a handle of the current player. More... | |
Point2D Double | getFlag (RCSeeEvent event) |
find and return the abs coordinates for the given flag and left side if you want the coordinates negate x and y. More... | |
void | MessageFilter (RCHearEvent Event) |
analyse and filter messages from server and set the corresponding playmode. More... | |
Public Attributes | |
RCObject | Ball |
Attributes. More... | |
RCObject [] | Enemies |
RCObject [] | Friends |
RCEvent | Event |
boolean | NewEvent |
int | PlayerNumber |
double | X1 |
double | Y1 |
double | X2 |
double | Y2 |
double | angle |
double | AngleToBall |
int | AngleToBallTimeStamp |
boolean | NewData |
final String | MsgStart = "RCTEAM:" |
int | GameMode |
int | Side |
RCServerParamEvent | ServerParam |
RCPlayerParamEvent | PlayerParam |
RCPlayerTypeEvent | PlayerType [] |
RCSenceEvent | SenceBody |
RCSeeEvent | NearestFlag = null |
RCSeeEvent | NearestLine = null |
boolean | ValidPosition = false |
int | CurrentTimeStamp |
RCLog | Log |
Private Attributes | |
boolean | OutOfField |
int | OutOfFieldCounter |
boolean | enableOutOfField |
Point2D Double | OldPosition |
RCDisplay | Display |
Associations. More... | |
RCBrain | Brain |
This class analyse the server messages and calculates the for all objects on the field.
Definition at line 83 of file RCWorld.java.
|
Constructor. Initialize a new object. Definition at line 136 of file RCWorld.java. |
|
analyse and filter messages from server and set the corresponding playmode.
Definition at line 710 of file RCWorld.java. |
|
Definition at line 369 of file RCWorld.java. |
|
find and return the abs coordinates for the given flag and left side if you want the coordinates negate x and y.
Definition at line 559 of file RCWorld.java. |
|
get a handle of the current player.
Definition at line 543 of file RCWorld.java. Referenced by RCViewPort::paint(), RCBrain::shoot(), RCGoalieBrain::update(), and RCBrain::update().
|
|
This function get a list full of RCEvent* 's. The function remove and process every event in the list. After the processing the function update the strategy and the display component.
Definition at line 185 of file RCWorld.java. Referenced by RCParser::parseHear(), RCParser::parsePlayerParam(), RCParser::parsePlayerType(), RCParser::parseSee(), RCParser::parseSenseBody(), and RCParser::parseServerParam().
|
|
Sets the strategy component of the player.
Definition at line 165 of file RCWorld.java. Referenced by RCPlayer::RCPlayer().
|
|
set the visualisation component of the player.
Definition at line 175 of file RCWorld.java. Referenced by RCPlayer::RCPlayer().
|
|
Definition at line 100 of file RCWorld.java. |
|
Definition at line 101 of file RCWorld.java. |
|
Attributes.
Definition at line 86 of file RCWorld.java. |
|
Definition at line 130 of file RCWorld.java. |
|
Definition at line 120 of file RCWorld.java. |
|
Associations.
Definition at line 129 of file RCWorld.java. |
|
Definition at line 87 of file RCWorld.java. |
|
Definition at line 89 of file RCWorld.java. |
|
Definition at line 88 of file RCWorld.java. |
|
Definition at line 106 of file RCWorld.java. |
|
Definition at line 131 of file RCWorld.java. |
|
Definition at line 104 of file RCWorld.java. |
|
Definition at line 116 of file RCWorld.java. |
|
Definition at line 117 of file RCWorld.java. |
|
Definition at line 102 of file RCWorld.java. |
|
Definition at line 90 of file RCWorld.java. |
|
Definition at line 126 of file RCWorld.java. |
|
Definition at line 123 of file RCWorld.java. |
|
Definition at line 124 of file RCWorld.java. |
|
Definition at line 91 of file RCWorld.java. |
|
Definition at line 111 of file RCWorld.java. |
|
Definition at line 112 of file RCWorld.java. |
|
Definition at line 113 of file RCWorld.java. |
|
Definition at line 110 of file RCWorld.java. |
|
Definition at line 108 of file RCWorld.java. |
|
Definition at line 118 of file RCWorld.java. |
|
Definition at line 94 of file RCWorld.java. |
|
Definition at line 96 of file RCWorld.java. |
|
Definition at line 95 of file RCWorld.java. |
|
Definition at line 97 of file RCWorld.java. |
|
Definition at line 99 of file RCWorld.java. |
|
Definition at line 125 of file RCWorld.java. |