|
||||||||||
| 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 |
private Action |
initiateAction(String role,
int unitHandle,
String action,
int actionId)
Description of the Method |
private void |
log(String s)
Description of the Method |
void |
startGame(String role)
Description of the Method |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ServerImpl()
| Method Detail |
public Dimension getMapSize()
getMapSize in interface Serverpublic byte[] getMap()
getMap in interface Serverpublic Map getUnitTypeIcons()
getUnitTypeIcons in interface Server
public void actionOnVoid(String fromRole,
long actionId,
int unitHandle,
String action)
actionOnVoid in interface ServerfromRole - 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 ServerfromRole - 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 ServerfromRole - 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 ServerfromRole - the role that sent the order.actionId - the action to cancel.public void startGame(String role)
startGame in interface Serverrole - Description of Parameter
private Action initiateAction(String role,
int unitHandle,
String action,
int actionId)
role - Description of ParameterunitHandle - Description of Parameteraction - Description of ParameteractionId - Description of Parameterprivate void log(String s)
s - Description of Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||