|
||||||||||
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 String |
Id
Unique Id of weapon to switch to. |
static 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(String Id)
Creates new instance of command ChangeWeapon. |
Method Summary | |
---|---|
String |
getId()
Unique Id of weapon to switch to. |
ChangeWeapon |
setId(String Id)
Unique Id of weapon to switch to. |
String |
toHtmlString()
|
String |
toMessage()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROTOTYPE
protected String Id
Constructor Detail |
---|
public ChangeWeapon(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 String getId()
public ChangeWeapon setId(String Id)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |