|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.ChangeAttribute
public class ChangeAttribute
Representation of the GameBots2004 command CHATTR. 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 GameBots2004.ini file).
Field Summary | |
---|---|
protected Integer |
Adrenaline
Sets the bot adrenaline. |
protected Integer |
Health
Sets the bot health. |
protected UnrealId |
Id
Id of the target bot. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
Constructor Summary | |
---|---|
ChangeAttribute()
Creates new instance of command ChangeAttribute. |
|
ChangeAttribute(ChangeAttribute original)
Cloning constructor. |
|
ChangeAttribute(UnrealId Id,
Integer Health,
Integer Adrenaline)
Creates new instance of command ChangeAttribute. |
Method Summary | |
---|---|
Integer |
getAdrenaline()
Sets the bot adrenaline. |
Integer |
getHealth()
Sets the bot health. |
UnrealId |
getId()
Id of the target bot. |
ChangeAttribute |
setAdrenaline(Integer Adrenaline)
Sets the bot adrenaline. |
ChangeAttribute |
setHealth(Integer 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 |
---|
public static final String PROTOTYPE
protected UnrealId Id
protected Integer Health
protected Integer Adrenaline
Constructor Detail |
---|
public ChangeAttribute(UnrealId Id, Integer Health, Integer Adrenaline)
Id
- Id of the target bot. Not used if sent as a command for the
bot.Health
- Sets the bot health. Maximum health level is 199 in UT2004.Adrenaline
- Sets the bot adrenaline. From 0 to 100.public ChangeAttribute()
public ChangeAttribute(ChangeAttribute original)
original
- Method Detail |
---|
public UnrealId getId()
public ChangeAttribute setId(UnrealId Id)
public Integer getHealth()
public ChangeAttribute setHealth(Integer Health)
public Integer getAdrenaline()
public ChangeAttribute setAdrenaline(Integer Adrenaline)
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 |