|
||||||||||
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.udk.communication.messages.gbcommands.ChangeWeapon
public class ChangeWeapon
Switch the bots weapon to another. Corresponding GameBots command is CHANGEWEAPON.
Field Summary | |
---|---|
protected String |
Id
Unique Id of weapon to switch to. |
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 |
---|
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)
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 |