|
||||||||||
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.ChangeAttribute
public class ChangeAttribute
Will change the specified attribute of the bot. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed). Issuing by bot is allowed just when the game has allowed cheating (bAllowCheats = True in GameBotsUDK.ini file). Corresponding GameBots command is CHATTR.
Field Summary | |
---|---|
protected int |
Health
Sets the bot health. |
protected UnrealId |
Id
Id of the target bot. |
Constructor Summary | |
---|---|
ChangeAttribute()
Creates new instance of command ChangeAttribute. |
|
ChangeAttribute(ChangeAttribute original)
Cloning constructor. |
|
ChangeAttribute(UnrealId Id,
int Health)
Creates new instance of command ChangeAttribute. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected int Health
Constructor Detail |
---|
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)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |