public class ChangeWeapon extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
protected String |
Id
Unique Id of weapon to switch to.
|
| Constructor and Description |
|---|
ChangeWeapon()
Creates new instance of command ChangeWeapon.
|
ChangeWeapon(ChangeWeapon original)
Cloning constructor.
|
ChangeWeapon(String Id)
Creates new instance of command ChangeWeapon.
|
protected String Id
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)
public String getId()
public ChangeWeapon setId(String Id)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.