Inheritance diagram for RCCommunicator::
Public Methods | |
RCCommunicator (String Team, RCWorld World, boolean Goalie, String Host, int Port) | |
Constructor for RCCommunicator oject. More... | |
boolean | receive () |
receive a package, and do a cycle. More... | |
void | turn (double Movement) |
send a move message to the server. More... | |
void | dash (double Power) |
send a dash message to the server. More... | |
void | kick (double Power, double Direction) |
send a kick message to the server. More... | |
void | catchit (double Direction) |
send a catch message to the server. More... | |
void | move (double x, double y) |
send a move message to the server. More... | |
void | turn_neck (double Angle) |
Send a turn_neck message to the sever. More... | |
void | say (String Message) |
Send a say message to the server, with World.MsgStart as prefix. More... | |
void | sence_body () |
Send a body_sence message to the server. More... | |
void | send (String Message) |
This function sends a message to the server. More... | |
Public Attributes | |
String | Host |
Attributes. More... | |
int | ServerPort |
String | Team |
int | PlayerNumber |
RCPlayMode | PlayMode |
boolean | Goalie |
DatagramSocket | Sock |
InetAddress | Address |
Private Attributes | |
RCParser | Parser |
Associations. More... | |
RCWorld | World |
It log on to the server and receive the messages from the server. It use the RCParser class for parsing and delivering the servermessages.
Definition at line 67 of file RCCommunicator.java.
|
Constructor for RCCommunicator oject.
Definition at line 91 of file RCCommunicator.java. |
|
send a catch message to the server.
Definition at line 208 of file RCCommunicator.java. Referenced by RCGoalieBrain::update().
|
|
send a dash message to the server.
Definition at line 189 of file RCCommunicator.java. Referenced by RCBrain::dribbleToGoal(), RCGoalieBrain::update(), and RCBrain::update().
|
|
send a kick message to the server.
Definition at line 199 of file RCCommunicator.java. Referenced by RCBrain::dribbleToGoal(), RCBrain::shoot(), and RCGoalieBrain::update().
|
|
send a move message to the server.
Definition at line 218 of file RCCommunicator.java. |
|
receive a package, and do a cycle. If there was an error it returns false (example server closed);
Definition at line 158 of file RCCommunicator.java. Referenced by RCPlayer::run().
|
|
Send a say message to the server, with World.MsgStart as prefix.
Definition at line 237 of file RCCommunicator.java. |
|
Send a body_sence message to the server.
Definition at line 244 of file RCCommunicator.java. |
|
This function sends a message to the server. All other send-methods are calling this function to deliver their messages.
Definition at line 254 of file RCCommunicator.java. |
|
send a move message to the server.
Definition at line 180 of file RCCommunicator.java. Referenced by RCBrain::dribbleToGoal(), RCGoalieBrain::update(), and RCBrain::update().
|
|
Send a turn_neck message to the sever.
Definition at line 227 of file RCCommunicator.java. |
|
Definition at line 77 of file RCCommunicator.java. |
|
Definition at line 75 of file RCCommunicator.java. |
|
Attributes.
Definition at line 70 of file RCCommunicator.java. |
|
Associations.
Definition at line 79 of file RCCommunicator.java. |
|
Definition at line 74 of file RCCommunicator.java. |
|
Definition at line 73 of file RCCommunicator.java. |
|
Definition at line 71 of file RCCommunicator.java. |
|
Definition at line 76 of file RCCommunicator.java. |
|
Definition at line 72 of file RCCommunicator.java. |
|
Definition at line 80 of file RCCommunicator.java. |