public class AKClearArea extends AbstractCommand
Constructor and Description |
---|
AKClearArea(EntityID agent,
int time,
int destinationX,
int destinationY)
Construct an AKClearArea command.
|
AKClearArea(java.io.InputStream in)
An AKClearArea message that populates its data from a stream.
|
Modifier and Type | Method and Description |
---|---|
int |
getDestinationX()
Get the destination X coordinate.
|
int |
getDestinationY()
Get the destination Y coordinate.
|
getAgentID, getTime, setAgentID, setTime
addMessageComponent, getComponents, getURN, read, toString, write
public AKClearArea(java.io.InputStream in) throws java.io.IOException
in
- The InputStream to read.java.io.IOException
- If there is a problem reading the stream.public AKClearArea(EntityID agent, int time, int destinationX, int destinationY)
agent
- The ID of the agent issuing the command.time
- The time the command was issued.destinationX
- The X coordinate of the desired destination to clear.destinationY
- The Y coordinate of the desired destination to clear.