gecco.communication.messages
Class UnitPositionUpdateMessage
java.lang.Object
|
+--gecco.communication.messages.ServerMessage
|
+--gecco.communication.messages.UnitPositionUpdateMessage
- public class UnitPositionUpdateMessage
- extends ServerMessage
This message is put in the send queue on the server part of the
communication, when the server calls unitMoved
- Author:
- Niklas Hallenfur
Field Summary |
(package private) int |
unitHandle
Description of the Field |
(package private) double |
x
Description of the Field |
(package private) double |
y
Description of the Field |
Constructor Summary |
UnitPositionUpdateMessage(int _unitHandle,
double x,
double y)
Constructor for the UnitPositionUpdateMessage object |
Method Summary |
int |
getUnitHandle()
Gets the UnitHandle attribute of the UnitPositionUpdateMessage object |
double |
getX()
Gets the X attribute of the UnitPositionUpdateMessage object |
double |
getY()
Gets the Y attribute of the UnitPositionUpdateMessage object |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
x
double x
- Description of the Field
y
double y
- Description of the Field
unitHandle
int unitHandle
- Description of the Field
UnitPositionUpdateMessage
public UnitPositionUpdateMessage(int _unitHandle,
double x,
double y)
- Constructor for the UnitPositionUpdateMessage object
- Parameters:
_unitHandle
- Description of Parameterx
- Description of Parametery
- Description of Parameter
getX
public double getX()
- Gets the X attribute of the UnitPositionUpdateMessage object
- Returns:
- The X value
getY
public double getY()
- Gets the Y attribute of the UnitPositionUpdateMessage object
- Returns:
- The Y value
getUnitHandle
public int getUnitHandle()
- Gets the UnitHandle attribute of the UnitPositionUpdateMessage object
- Returns:
- The UnitHandle value