public class ChangeAttribute extends CommandMessage
Modifier and Type | Field and Description |
---|---|
protected int |
Health
Sets the bot health.
|
protected UnrealId |
Id
Id of the target bot.
|
Constructor and Description |
---|
ChangeAttribute()
Creates new instance of command ChangeAttribute.
|
ChangeAttribute(ChangeAttribute original)
Cloning constructor.
|
ChangeAttribute(UnrealId Id,
int Health)
Creates new instance of command ChangeAttribute.
|
Modifier and Type | Method and Description |
---|---|
int |
getHealth()
Sets the bot health.
|
UnrealId |
getId()
Id of the target bot.
|
ChangeAttribute |
setHealth(int Health)
Sets the bot health.
|
ChangeAttribute |
setId(UnrealId Id)
Id of the target bot.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
protected UnrealId Id
protected int Health
public ChangeAttribute(UnrealId Id, int Health)
Id
- Id of the target bot. Not used if sent as a command for the
bot.Health
- Sets the bot health.public ChangeAttribute()
public ChangeAttribute(ChangeAttribute original)
public UnrealId getId()
public ChangeAttribute setId(UnrealId Id)
public int getHealth()
public ChangeAttribute setHealth(int Health)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.