|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Description of the Interface
Method Summary | |
void |
abortAction(String fromRole,
long actionId)
Aborts the given action. |
void |
actionOnPosition(String fromRole,
long actionId,
int unitHandle,
String action,
double x,
double y)
Orders an action that takes a position parameter. |
void |
actionOnUnit(String fromRole,
long actionId,
int unitHandle,
String action,
int targetUnit)
Orders an action that takes a unit and cooperative units as parameters. |
void |
actionOnVoid(String fromRole,
long actionId,
int unitHandle,
String action)
Orders an action that takes no parameters. |
byte[] |
getMap()
Returns the map itself, in its original state. |
Dimension |
getMapSize()
Returns the size of the map. |
Map |
getUnitTypeIcons()
Returns a map with keys representing the string for each unit type. |
void |
resendAllData(String fromRole)
Called when a client wants all its available visible information sent |
Method Detail |
public void actionOnVoid(String fromRole, long actionId, int unitHandle, String action)
fromRole
- the role that sent the order.actionId
- an identifier for this action.unitHandle
- the unit being ordered.action
- the action to perform.public void actionOnUnit(String fromRole, long actionId, int unitHandle, String action, int targetUnit)
fromRole
- the role that sent the order.actionId
- an identifier for this action.unitHandle
- the unit being ordered.action
- the action to perform.targetUnit
- the unit being targeted.public void actionOnPosition(String fromRole, long actionId, int unitHandle, String action, double x, double y)
fromRole
- the role that sent the order.actionId
- an identifier for this action.unitHandle
- the unit being ordered.action
- the action to perform.x
- the X coordinate parameter.y
- the Y coordinate parameter.public void abortAction(String fromRole, long actionId)
fromRole
- the role that sent the order.actionId
- the action to cancel.public void resendAllData(String fromRole)
fromRole
- Description of Parameterpublic Dimension getMapSize()
public byte[] getMap()
public Map getUnitTypeIcons()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |