public interface IAct extends IComponent
| Modifier and Type | Method and Description |
|---|---|
void |
act(CommandMessage command)
Execute an action in the world.
|
void |
addCommandListener(Class commandClass,
ICommandListener listener)
Attach listener to outgoing commands from body.
|
boolean |
isCommandListening(Class commandClass,
ICommandListener listener)
Whether the listener is listening for commands of commandClass.
|
void |
removeCommandListener(Class commandClass,
ICommandListener listener)
Remove the listener to outgoing commands.
|
getComponentIdvoid act(CommandMessage command) throws ComponentNotRunningException, ComponentPausedException
May block.
Should serialize the command object and send it through the writer that is usually provided by IWorldWriterProvider.
void addCommandListener(Class commandClass, ICommandListener listener)
After the command is sent to the world, listener will be notified.
commandClass - which command you want to listen tolistener - boolean isCommandListening(Class commandClass, ICommandListener listener)
commandClass - listener - void removeCommandListener(Class commandClass, ICommandListener listener)
commandClass - which command you want to listen tolistener - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.