public class AKExtinguish extends AbstractCommand
Constructor and Description |
---|
AKExtinguish(EntityID agent,
int time,
EntityID target,
int water)
Construct an AKExtinguish command.
|
AKExtinguish(java.io.InputStream in)
An AKExtinguish message that populates its data from a stream.
|
Modifier and Type | Method and Description |
---|---|
EntityID |
getTarget()
Get the desired target.
|
int |
getWater()
Get the amount of water.
|
getAgentID, getTime, setAgentID, setTime
addMessageComponent, getComponents, getURN, read, toString, write
public AKExtinguish(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 AKExtinguish(EntityID agent, int time, EntityID target, int water)
agent
- The ID of the agent issuing the command.time
- The time the command was issued.target
- The id of the entity to extinguish.water
- The amount of water to use.public EntityID getTarget()
public int getWater()