|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.core.ServerImpl
Description of the Class
Constructor Summary | |
ServerImpl()
Constructor for the ServerImpl object |
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 as a parameter. |
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()
Gets the UnitTypeIcons attribute of the ServerImpl object |
void |
resendAllData(String role)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerImpl()
Method Detail |
public Dimension getMapSize()
getMapSize
in interface Server
public byte[] getMap()
getMap
in interface Server
public Map getUnitTypeIcons()
getUnitTypeIcons
in interface Server
public void actionOnVoid(String fromRole, long actionId, int unitHandle, String action)
actionOnVoid
in interface Server
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)
actionOnUnit
in interface Server
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)
actionOnPosition
in interface Server
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)
abortAction
in interface Server
fromRole
- the role that sent the order.actionId
- the action to cancel.public void resendAllData(String role)
resendAllData
in interface Server
role
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |