cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class FactoryUse
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.FactoryUse
public class FactoryUse
- extends CommandMessage
Representation of the GameBots2004 command USE.
Works only in BotScenario GameType. Bot tries to use Factory - he needs to be at factory position + he needs to have enough adrenaline to trigger the factory. Game responds with USED (FactoryUsed) message. The item will be spawned at bot's location.
Field Summary |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROTOTYPE
public static final java.lang.String PROTOTYPE
- Example how the message looks like - used during parser tests.
- See Also:
- Constant Field Values
FactoryUse
public FactoryUse()
- Creates new instance of command FactoryUse.
Works only in BotScenario GameType. Bot tries to use Factory - he needs to be at factory position + he needs to have enough adrenaline to trigger the factory. Game responds with USED (FactoryUsed) message. The item will be spawned at bot's location.
Corresponding GameBots message for this command is
USE.
FactoryUse
public FactoryUse(FactoryUse original)
- Cloning constructor.
- Parameters:
original
-
toString
public java.lang.String toString()
- Overrides:
toString
in class CommandMessage
toHtmlString
public java.lang.String toHtmlString()
toMessage
public java.lang.String toMessage()