|
||||||||||
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.InfoMessage cz.cuni.amis.pogamut.udk.communication.messages.GBObjectUpdate cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.InitedMessage
public class InitedMessage
Asynchronous message. Sent after succesfull init command (so usually just once). Holds many attributes of the bots like speed, id starting and max health, etc. Some attributes are not used due to GameBots mechanics. Corresponding GameBots message is INITED.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
Field Summary | |
---|---|
protected double |
AccelRate
Accelartion rate of this bot. |
protected double |
AdrenalineMax
Maxium amount of the adrenaline. |
protected double |
AdrenalineStart
Amount of adrenaline at the start. |
protected double |
AirControl
How well can be the bot controlled in the air (ranges from 0 to 1). |
protected double |
AirSpeed
AirSpeed of the bot (in the air). |
protected UnrealId |
BotId
A unique unreal Id of the new bot. |
protected double |
DamageScaling
Damage scaling for this bot. |
protected double |
DodgeSpeedFactor
Dodge speed factor. |
protected double |
DodgeSpeedZ
Dodge jump Z boost of the bot. |
protected double |
GroundSpeed
Groundspeed of the bot (on the ground). |
protected int |
HealthFull
Full health of the bot (usually 100). |
protected int |
HealthMax
Maximum health of the bot (default 199). |
protected int |
HealthStart
Bot will always start with this health amount (usually 100). |
static UnrealId |
InitedMessageId
|
protected double |
JumpZ
Bot Jump's Z boost. |
protected double |
LadderSpeed
Ladderspeed of the bot (on the ladder). |
protected double |
MaxFallSpeed
Max fall speed of the bot. |
protected int |
MaxMultiJump
Maximum amount of succesing jumps. |
protected double |
MultiJumpBoost
Not used in GB. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected int |
ShieldStrengthMax
Maximum strength of the bot armor (usually 150). |
protected int |
ShieldStrengthStart
Starting strength of the bot armor (usually 0). |
protected double |
Time
|
protected double |
WaterSpeed
Waterspeed of the bot (in the water). |
Constructor Summary | |
---|---|
InitedMessage()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
InitedMessage(InitedMessage original)
Cloning constructor. |
|
InitedMessage(UnrealId BotId,
int HealthStart,
int HealthFull,
int HealthMax,
double AdrenalineStart,
double AdrenalineMax,
int ShieldStrengthStart,
int ShieldStrengthMax,
int MaxMultiJump,
double DamageScaling,
double GroundSpeed,
double WaterSpeed,
double AirSpeed,
double LadderSpeed,
double AccelRate,
double JumpZ,
double MultiJumpBoost,
double MaxFallSpeed,
double DodgeSpeedFactor,
double DodgeSpeedZ,
double AirControl)
Creates new instance of command InitedMessage. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
double |
getAccelRate()
Accelartion rate of this bot. |
double |
getAdrenalineMax()
Maxium amount of the adrenaline. |
double |
getAdrenalineStart()
Amount of adrenaline at the start. |
double |
getAirControl()
How well can be the bot controlled in the air (ranges from 0 to 1). |
double |
getAirSpeed()
AirSpeed of the bot (in the air). |
UnrealId |
getBotId()
A unique unreal Id of the new bot. |
double |
getDamageScaling()
Damage scaling for this bot. |
double |
getDodgeSpeedFactor()
Dodge speed factor. |
double |
getDodgeSpeedZ()
Dodge jump Z boost of the bot. |
double |
getGroundSpeed()
Groundspeed of the bot (on the ground). |
int |
getHealthFull()
Full health of the bot (usually 100). |
int |
getHealthMax()
Maximum health of the bot (default 199). |
int |
getHealthStart()
Bot will always start with this health amount (usually 100). |
UnrealId |
getId()
|
double |
getJumpZ()
Bot Jump's Z boost. |
double |
getLadderSpeed()
Ladderspeed of the bot (on the ladder). |
double |
getLastSeenTime()
|
ILocalWorldObject |
getLocal()
|
double |
getMaxFallSpeed()
Max fall speed of the bot. |
int |
getMaxMultiJump()
Maximum amount of succesing jumps. |
double |
getMultiJumpBoost()
Not used in GB. |
IWorldObject |
getObject()
Returns original object (if method update() has already been called, for bot-programmer that is always true as the original object is updated and then the event is propagated). |
ISharedWorldObject |
getShared()
|
int |
getShieldStrengthMax()
Maximum strength of the bot armor (usually 150). |
int |
getShieldStrengthStart()
Starting strength of the bot armor (usually 0). |
long |
getSimTime()
|
IStaticWorldObject |
getStatic()
|
protected double |
getTime()
|
double |
getWaterSpeed()
Waterspeed of the bot (in the water). |
int |
hashCode()
|
protected void |
setTime(double time)
|
String |
toHtmlString()
|
String |
toString()
|
IWorldObjectUpdateResult |
update(IWorldObject obj)
|
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
---|
toJsonLiteral |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROTOTYPE
protected UnrealId BotId
protected int HealthStart
protected int HealthFull
protected int HealthMax
protected double AdrenalineStart
protected double AdrenalineMax
protected int ShieldStrengthStart
protected int ShieldStrengthMax
protected int MaxMultiJump
protected double DamageScaling
protected double GroundSpeed
protected double WaterSpeed
protected double AirSpeed
protected double LadderSpeed
protected double AccelRate
protected double JumpZ
protected double MultiJumpBoost
protected double MaxFallSpeed
protected double DodgeSpeedFactor
protected double DodgeSpeedZ
protected double AirControl
public static final UnrealId InitedMessageId
protected double Time
Constructor Detail |
---|
public InitedMessage(UnrealId BotId, int HealthStart, int HealthFull, int HealthMax, double AdrenalineStart, double AdrenalineMax, int ShieldStrengthStart, int ShieldStrengthMax, int MaxMultiJump, double DamageScaling, double GroundSpeed, double WaterSpeed, double AirSpeed, double LadderSpeed, double AccelRate, double JumpZ, double MultiJumpBoost, double MaxFallSpeed, double DodgeSpeedFactor, double DodgeSpeedZ, double AirControl)
BotId
- A unique unreal Id of the new bot.HealthStart
- Bot will always start with this health amount (usually 100).HealthFull
- Full health of the bot (usually 100).HealthMax
- Maximum health of the bot (default 199).AdrenalineStart
- Amount of adrenaline at the start. Usually 0.AdrenalineMax
- Maxium amount of the adrenaline. Usually 100 (this can trigger the combos).ShieldStrengthStart
- Starting strength of the bot armor (usually 0).ShieldStrengthMax
- Maximum strength of the bot armor (usually 150).MaxMultiJump
- Maximum amount of succesing jumps. Currently limited to double jump in GB.DamageScaling
- Damage scaling for this bot. (he will deal reduced damage depending on the setting).GroundSpeed
- Groundspeed of the bot (on the ground). Default 440.WaterSpeed
- Waterspeed of the bot (in the water).AirSpeed
- AirSpeed of the bot (in the air).LadderSpeed
- Ladderspeed of the bot (on the ladder).AccelRate
- Accelartion rate of this bot. How fast he accelerates.JumpZ
- Bot Jump's Z boost.MultiJumpBoost
- Not used in GB.MaxFallSpeed
- Max fall speed of the bot.DodgeSpeedFactor
- Dodge speed factor.DodgeSpeedZ
- Dodge jump Z boost of the bot.AirControl
- How well can be the bot controlled in the air (ranges from 0 to 1).public InitedMessage(InitedMessage original)
public InitedMessage()
Method Detail |
---|
public UnrealId getBotId()
public int getHealthStart()
public int getHealthFull()
public int getHealthMax()
public double getAdrenalineStart()
public double getAdrenalineMax()
public int getShieldStrengthStart()
public int getShieldStrengthMax()
public int getMaxMultiJump()
public double getDamageScaling()
public double getGroundSpeed()
public double getWaterSpeed()
public double getAirSpeed()
public double getLadderSpeed()
public double getAccelRate()
public double getJumpZ()
public double getMultiJumpBoost()
public double getMaxFallSpeed()
public double getDodgeSpeedFactor()
public double getDodgeSpeedZ()
public double getAirControl()
public UnrealId getId()
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
protected double getTime()
protected void setTime(double time)
public double getLastSeenTime()
public ILocalWorldObject getLocal()
public ISharedWorldObject getShared()
public IStaticWorldObject getStatic()
public long getSimTime()
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldObject
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IWorldObjectUpdateResult update(IWorldObject obj)
update
in interface IWorldObjectUpdatedEvent
public IWorldObject getObject()
public String toString()
toString
in class InfoMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |