|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.ChangeWeapon
public class ChangeWeapon
Representation of the GameBots2004 command CHANGEWEAPON. Switch the bots weapon to another.
Field Summary | |
---|---|
protected java.lang.String |
Id
Unique Id of weapon to switch to. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
Constructor Summary | |
---|---|
ChangeWeapon()
Creates new instance of command ChangeWeapon. |
|
ChangeWeapon(ChangeWeapon original)
Cloning constructor. |
|
ChangeWeapon(java.lang.String Id)
Creates new instance of command ChangeWeapon. |
Method Summary | |
---|---|
java.lang.String |
getId()
Unique Id of weapon to switch to. |
ChangeWeapon |
setId(java.lang.String Id)
Unique Id of weapon to switch to. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected java.lang.String Id
Constructor Detail |
---|
public ChangeWeapon(java.lang.String Id)
Id
- Unique Id of weapon to switch to. If you just send "Best" as
Id, the server will pick your best weapon that still has
ammo for you. Obtain Unique Id's from AIN messages. Be
carefull, the weapon Id in bots inventory is different from
the Ids of weapons that are lying in the map!public ChangeWeapon()
public ChangeWeapon(ChangeWeapon original)
original
- Method Detail |
---|
public java.lang.String getId()
public ChangeWeapon setId(java.lang.String Id)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |