|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Description of the Interface
Method Summary | |
void |
actionCompleted(String role,
int actionHandle,
String unitMessage)
Tells the clients that an action was successfully completed. |
void |
actionFailed(String role,
int actionHandle,
String errorMessage)
Tells the clients that an action has failed. |
void |
automatonHasState(String role,
int x,
int y,
Color color)
Tells the clients that an automaton, which may or may not have been visible to them previously, is now visible and in a certain state. |
void |
automatonInvisible(String role,
int x,
int y)
Tells the clients that an automaton, which was previously visible to them, is now invisible. |
void |
automatonsHasState(String role,
List pointObjects,
List colors)
Description of the Method |
void |
automatonsInvisible(String role,
List pointObjects)
Description of the Method |
void |
unitActionBlocked(String role,
int handle,
ActionDefinition action,
boolean isBlocked)
Tells the clients that an action of the specified unit, which was and is visible to them, is now blocked or unblocked (depending on
isBlocked ). |
void |
unitDeleted(String role,
int handle)
Tells the clients that the specified unit, which was previosly visible to them, is now deleted. |
void |
unitInvisible(String role,
int handle)
Tells the clients that the specified unit, which was previosly visible to them, is now invisible. |
void |
unitMessage(String role,
int unitHandle,
String unitMessage)
Description of the Method |
void |
unitMoved(String role,
int handle,
double newX,
double newY)
Tells the clients that the specified unit, which was and is visible to them, has moved. |
void |
unitPropertyChanged(String role,
int handle,
String key,
String newValue)
Tells the clients that a property of the specified unit, which was and is visible to them, has changed. |
void |
unitVisible(String role,
int handle,
String name,
String type,
double x,
double y,
Set unblockedActions,
Set blockedActions,
Map properties)
Tells the clients that the specified unit, which was previously invisible to them, is now visible. |
Method Detail |
public void unitVisible(String role, int handle, String name, String type, double x, double y, Set unblockedActions, Set blockedActions, Map properties)
role
- The message is to be sent only to the client(s)
playing this role.handle
- Specifies which unit the message is about.name
- the name of this particular unit.type
- the name of this kind of unit.x
- the X coordinate of the unit.y
- the Y coordinate of the unit.unblockedActions
- the set containing ActionDefinitions
for all actions that the specified client(s) may order this
unit to perform, and that are currently not blocked. May be
null
if the clients can't give this unit any orders at all.blockedActions
- the set containing ActionDefinitions
for all actions that the specified client(s) may order this
unit to perform, and that are currently blocked (such as, for
example, the command "Move" when the unit has no fuel left). May be
null
if the set is empty.properties
- the properties (key/value pairs) of this unit
that the specified client(s) can see. May be null
.public void unitInvisible(String role, int handle)
role
- The message is to be sent only to the client(s) playing
this role.handle
- Specifies which unit the message is about.public void unitDeleted(String role, int handle)
role
- The message is to be sent only to the client(s) playing
this role.handle
- Specifies which unit the message is about.public void unitMoved(String role, int handle, double newX, double newY)
role
- The message is to be sent only to the client(s) playing
this role.handle
- Specifies which unit the message is about.newX
- the new X coordinate of the unit.newY
- the new Y coordinate of the unit.public void unitPropertyChanged(String role, int handle, String key, String newValue)
role
- The message is to be sent only to the client(s) playing
this role.handle
- Specifies which unit the message is about.key
- the property that has changed.newValue
- the new value of the property.public void unitActionBlocked(String role, int handle, ActionDefinition action, boolean isBlocked)
isBlocked
).role
- The message is to be sent only to the client(s)
playing this role.handle
- Specifies which unit the message is about.action
- the action that is now blocked or unblocked.isBlocked
- Description of Parameterpublic void automatonHasState(String role, int x, int y, Color color)
role
- The message is to be sent only to the client(s) playing
this role.x
- the X coordinate of the automaton.y
- the Y coordinate of the automaton.color
- the color representing the current state.public void automatonsHasState(String role, List pointObjects, List colors)
role
- Description of ParameterpointObjects
- Description of Parametercolors
- Description of Parameterpublic void automatonInvisible(String role, int x, int y)
role
- The message is to be sent only to the client(s) playing
this role.x
- the X coordinate of the automaton.y
- the Y coordinate of the automaton.public void automatonsInvisible(String role, List pointObjects)
role
- Description of ParameterpointObjects
- Description of Parameterpublic void actionCompleted(String role, int actionHandle, String unitMessage)
role
- The message is to be sent only to the client(s)
playing this role.actionHandle
- The handle for the completed action.unitMessage
- Description of Parameterpublic void actionFailed(String role, int actionHandle, String errorMessage)
role
- The message is to be sent only to the client(s)
playing this role.actionHandle
- The handle for the failed action.errorMessage
- A message explaining what caused the failure.public void unitMessage(String role, int unitHandle, String unitMessage)
role
- Description of ParameterunitHandle
- Description of ParameterunitMessage
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |