gecco.communication.messages
Class ActionMessage

java.lang.Object
  |
  +--gecco.communication.messages.ActionMessage
Direct Known Subclasses:
AbortActionMessage, ActionOnPositionMessage, ActionOnUnitMessage, ActionOnVoidMessage

public class ActionMessage
extends Object

This is the superclass for all messages to be sent when the client calls doAction()

Author:
Niklas Hallenfur

Field Summary
private  String actionhandle
          Description of the Field
private  long actionID
          Description of the Field
private  int piecehandle
          Description of the Field
 
Constructor Summary
ActionMessage(long id, int ph, String ah)
          Constructor for the ActionMessage object
 
Method Summary
 String getActionHandle()
          Gets the ActionHandle attribute of the ActionMessage object
 long getId()
          Gets the Id attribute of the ActionMessage object
 int getPieceHandle()
          Gets the PieceHandle attribute of the ActionMessage object
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

piecehandle

private int piecehandle
Description of the Field

actionhandle

private String actionhandle
Description of the Field

actionID

private long actionID
Description of the Field
Constructor Detail

ActionMessage

public ActionMessage(long id,
                     int ph,
                     String ah)
Constructor for the ActionMessage object
Parameters:
id - Description of Parameter
ph - Description of Parameter
ah - Description of Parameter
Method Detail

getId

public long getId()
Gets the Id attribute of the ActionMessage object
Returns:
The Id value

getPieceHandle

public int getPieceHandle()
Gets the PieceHandle attribute of the ActionMessage object
Returns:
The PieceHandle value

getActionHandle

public String getActionHandle()
Gets the ActionHandle attribute of the ActionMessage object
Returns:
The ActionHandle value