gecco.communication.messages
Class ActionOnPositionMessage

java.lang.Object
  |
  +--gecco.communication.messages.ActionMessage
        |
        +--gecco.communication.messages.ActionOnPositionMessage

public class ActionOnPositionMessage
extends ActionMessage

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

Author:
Niklas Hallenfur

Field Summary
(package private)  double x
          Description of the Field
(package private)  double y
          Description of the Field
 
Fields inherited from class gecco.communication.messages.ActionMessage
actionhandle, actionID, piecehandle
 
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
 
Methods inherited from class gecco.communication.messages.ActionMessage
getActionHandle, getId, getPieceHandle
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

x

double x
Description of the Field

y

double y
Description of the Field
Constructor Detail

ActionOnPositionMessage

public ActionOnPositionMessage(long id,
                               int piece,
                               String actionhandle,
                               double x,
                               double y)
Constructor for the ActionOnPositionMessage object
Parameters:
id - Description of Parameter
piece - Description of Parameter
actionhandle - Description of Parameter
x - Description of Parameter
y - Description of Parameter
Method Detail

getX

public double getX()
Gets the X attribute of the ActionOnPositionMessage object
Returns:
The X value

getY

public double getY()
Gets the Y attribute of the ActionOnPositionMessage object
Returns:
The Y value