gecco.communication.messages
Class ActionOnUnitMessage

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

public class ActionOnUnitMessage
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.PIECE

Author:
Niklas Hallenfur

Field Summary
private  int targetpiece
          Description of the Field
 
Fields inherited from class gecco.communication.messages.ActionMessage
actionhandle, actionID, piecehandle
 
Constructor Summary
ActionOnUnitMessage(long id, int exe_piece, String actionhandle, int targetpiece)
          Constructor for the ActionOnUnitMessage object
 
Method Summary
 int getTargetPieceHandle()
          Gets the TargetPieceHandle attribute of the ActionOnUnitMessage 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

targetpiece

private int targetpiece
Description of the Field
Constructor Detail

ActionOnUnitMessage

public ActionOnUnitMessage(long id,
                           int exe_piece,
                           String actionhandle,
                           int targetpiece)
Constructor for the ActionOnUnitMessage object
Parameters:
id - Description of Parameter
exe_piece - Description of Parameter
actionhandle - Description of Parameter
targetpiece - Description of Parameter
Method Detail

getTargetPieceHandle

public int getTargetPieceHandle()
Gets the TargetPieceHandle attribute of the ActionOnUnitMessage object
Returns:
The TargetPieceHandle value