|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgecco.communication.messages.Message
gecco.communication.messages.ActionMessage
gecco.communication.messages.ActionOnPositionMessage
this message is added to the send queue in the client part of the communication, when the client calls doAction, and the provided Action type is Action.POSITION
Constructor Summary | |
ActionOnPositionMessage(long id,
int piece,
String actionhandle,
double x,
double y)
Constructor for the ActionOnPositionMessage object |
Method Summary | |
double |
getX()
Gets the X attribute of the ActionOnPositionMessage object |
double |
getY()
Gets the Y attribute of the ActionOnPositionMessage object |
static Message |
read(DataInput in)
This factory method reads a message of this type without an initial ID from the input stream, and returns a Message object. |
void |
write(DataOutput out)
This method writes the message to the given DataOutput . |
Methods inherited from class gecco.communication.messages.ActionMessage |
getActionHandle, getHandle, getId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionOnPositionMessage(long id, int piece, String actionhandle, double x, double y)
id
- Description of Parameterpiece
- Description of Parameteractionhandle
- Description of Parameterx
- Description of Parametery
- Description of ParameterMethod Detail |
public double getX()
public double getY()
public void write(DataOutput out) throws IOException
DataOutput
.
write
in class Message
out
- The output stream.
IOException
- In case something goes wrong.public static Message read(DataInput in) throws IOException
Message
object.
in
- The input stream.
Message
.
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |