cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class InitedMessageMessage

Package class diagram package InitedMessageMessage
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageMessage
All Implemented Interfaces:
IWorldChangeEvent, IWorldObjectUpdatedEvent, IWorldEvent, IWorldObject, ICompositeWorldObjectUpdatedEvent, ICompositeWorldObject, cz.cuni.amis.utils.listener.Event

public class InitedMessageMessage
extends InitedMessage
implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent

Implementation of the GameBots2004 message INITED contains also its Local/Shared/Static subpart class definitions..

Complete message documentation: 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.


Nested Class Summary
 class InitedMessageMessage.InitedMessageLocalMessage
          Implementation of the local part of the GameBots2004 message INITED, used to facade INITEDMessage.
 class InitedMessageMessage.InitedMessageSharedMessage
          Implementation of the shared part of the GameBots2004 message INITED, used to facade INITEDMessage.
 class InitedMessageMessage.InitedMessageStaticMessage
          Implementation of the static part of the GameBots2004 message INITED, used to facade INITEDMessage.
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
InitedMessage.InitedMessageUpdate
 
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  boolean AccelRate_Set
          Whether property 'AccelRate' was received from GB2004.
protected  double AdrenalineMax
          Maxium amount of the adrenaline.
protected  boolean AdrenalineMax_Set
          Whether property 'AdrenalineMax' was received from GB2004.
protected  double AdrenalineStart
          Amount of adrenaline at the start.
protected  boolean AdrenalineStart_Set
          Whether property 'AdrenalineStart' was received from GB2004.
protected  double AirControl
          How well can be the bot controlled in the air (ranges from 0 to 1).
protected  boolean AirControl_Set
          Whether property 'AirControl' was received from GB2004.
protected  double AirSpeed
          AirSpeed of the bot (in the air).
protected  boolean AirSpeed_Set
          Whether property 'AirSpeed' was received from GB2004.
protected  UnrealId BotId
          A unique unreal Id of the new bot.
protected  boolean BotId_Set
          Whether property 'BotId' was received from GB2004.
protected  double DamageScaling
          Damage scaling for this bot.
protected  boolean DamageScaling_Set
          Whether property 'DamageScaling' was received from GB2004.
protected  double DodgeSpeedFactor
          Dodge speed factor.
protected  boolean DodgeSpeedFactor_Set
          Whether property 'DodgeSpeedFactor' was received from GB2004.
protected  double DodgeSpeedZ
          Dodge jump Z boost of the bot.
protected  boolean DodgeSpeedZ_Set
          Whether property 'DodgeSpeedZ' was received from GB2004.
protected  double GroundSpeed
          Groundspeed of the bot (on the ground).
protected  boolean GroundSpeed_Set
          Whether property 'GroundSpeed' was received from GB2004.
protected  int HealthFull
          Full health of the bot (usually 100).
protected  boolean HealthFull_Set
          Whether property 'HealthFull' was received from GB2004.
protected  int HealthMax
          Maximum health of the bot (default 199).
protected  boolean HealthMax_Set
          Whether property 'HealthMax' was received from GB2004.
protected  int HealthStart
          Bot will always start with this health amount (usually 100).
protected  boolean HealthStart_Set
          Whether property 'HealthStart' was received from GB2004.
protected  double JumpZ
          Bot Jump's Z boost.
protected  boolean JumpZ_Set
          Whether property 'JumpZ' was received from GB2004.
protected  double LadderSpeed
          Ladderspeed of the bot (on the ladder).
protected  boolean LadderSpeed_Set
          Whether property 'LadderSpeed' was received from GB2004.
protected  double MaxFallSpeed
          Max fall speed of the bot.
protected  boolean MaxFallSpeed_Set
          Whether property 'MaxFallSpeed' was received from GB2004.
protected  int MaxMultiJump
          Maximum amount of succesing jumps.
protected  boolean MaxMultiJump_Set
          Whether property 'MaxMultiJump' was received from GB2004.
protected  double MultiJumpBoost
          Not used in GB.
protected  boolean MultiJumpBoost_Set
          Whether property 'MultiJumpBoost' was received from GB2004.
protected  int ShieldStrengthMax
          Maximum strength of the bot armor (usually 150).
protected  boolean ShieldStrengthMax_Set
          Whether property 'ShieldStrengthMax' was received from GB2004.
protected  int ShieldStrengthStart
          Starting strength of the bot armor (usually 0).
protected  boolean ShieldStrengthStart_Set
          Whether property 'ShieldStrengthStart' was received from GB2004.
protected  ITeamId TeamId
           
protected  double WaterSpeed
          Waterspeed of the bot (in the water).
protected  boolean WaterSpeed_Set
          Whether property 'WaterSpeed' was received from GB2004.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
InitedMessageId, PROTOTYPE, SimTime
 
Constructor Summary
InitedMessageMessage()
          Parameter-less contructor for the message.
InitedMessageMessage(InitedMessageMessage original)
          Cloning constructor from the full message.
InitedMessageMessage(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 the message InitedMessage.
 
Method Summary
 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).
 InitedMessageLocal getLocal()
           
 ILocalWorldObjectUpdatedEvent getLocalEvent()
           
 double getMaxFallSpeed()
          Max fall speed of the bot.
 int getMaxMultiJump()
          Maximum amount of succesing jumps.
 double getMultiJumpBoost()
          Not used in GB.
 InitedMessageShared getShared()
           
 ISharedWorldObjectUpdatedEvent getSharedEvent()
           
 int getShieldStrengthMax()
          Maximum strength of the bot armor (usually 150).
 int getShieldStrengthStart()
          Starting strength of the bot armor (usually 0).
 InitedMessageStatic getStatic()
           
 IStaticWorldObjectUpdatedEvent getStaticEvent()
           
 ITeamId getTeamId()
           
 double getWaterSpeed()
          Waterspeed of the bot (in the water).
protected  void setTeamId(ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 String toHtmlString()
           
 String toString()
           
 IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
getSimTime, setSimTime, toJsonLiteral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
getSimTime
 

Field Detail

TeamId

protected ITeamId TeamId

BotId

protected UnrealId BotId
A unique unreal Id of the new bot.


BotId_Set

protected boolean BotId_Set
Whether property 'BotId' was received from GB2004.


HealthStart

protected int HealthStart
Bot will always start with this health amount (usually 100).


HealthStart_Set

protected boolean HealthStart_Set
Whether property 'HealthStart' was received from GB2004.


HealthFull

protected int HealthFull
Full health of the bot (usually 100).


HealthFull_Set

protected boolean HealthFull_Set
Whether property 'HealthFull' was received from GB2004.


HealthMax

protected int HealthMax
Maximum health of the bot (default 199).


HealthMax_Set

protected boolean HealthMax_Set
Whether property 'HealthMax' was received from GB2004.


AdrenalineStart

protected double AdrenalineStart
Amount of adrenaline at the start. Usually 0.


AdrenalineStart_Set

protected boolean AdrenalineStart_Set
Whether property 'AdrenalineStart' was received from GB2004.


AdrenalineMax

protected double AdrenalineMax
Maxium amount of the adrenaline. Usually 100 (this can trigger the combos).


AdrenalineMax_Set

protected boolean AdrenalineMax_Set
Whether property 'AdrenalineMax' was received from GB2004.


ShieldStrengthStart

protected int ShieldStrengthStart
Starting strength of the bot armor (usually 0).


ShieldStrengthStart_Set

protected boolean ShieldStrengthStart_Set
Whether property 'ShieldStrengthStart' was received from GB2004.


ShieldStrengthMax

protected int ShieldStrengthMax
Maximum strength of the bot armor (usually 150).


ShieldStrengthMax_Set

protected boolean ShieldStrengthMax_Set
Whether property 'ShieldStrengthMax' was received from GB2004.


MaxMultiJump

protected int MaxMultiJump
Maximum amount of succesing jumps. Currently limited to double jump in GB.


MaxMultiJump_Set

protected boolean MaxMultiJump_Set
Whether property 'MaxMultiJump' was received from GB2004.


DamageScaling

protected double DamageScaling
Damage scaling for this bot. (he will deal reduced damage depending on the setting).


DamageScaling_Set

protected boolean DamageScaling_Set
Whether property 'DamageScaling' was received from GB2004.


GroundSpeed

protected double GroundSpeed
Groundspeed of the bot (on the ground). Default 440.


GroundSpeed_Set

protected boolean GroundSpeed_Set
Whether property 'GroundSpeed' was received from GB2004.


WaterSpeed

protected double WaterSpeed
Waterspeed of the bot (in the water).


WaterSpeed_Set

protected boolean WaterSpeed_Set
Whether property 'WaterSpeed' was received from GB2004.


AirSpeed

protected double AirSpeed
AirSpeed of the bot (in the air).


AirSpeed_Set

protected boolean AirSpeed_Set
Whether property 'AirSpeed' was received from GB2004.


LadderSpeed

protected double LadderSpeed
Ladderspeed of the bot (on the ladder).


LadderSpeed_Set

protected boolean LadderSpeed_Set
Whether property 'LadderSpeed' was received from GB2004.


AccelRate

protected double AccelRate
Accelartion rate of this bot. How fast he accelerates.


AccelRate_Set

protected boolean AccelRate_Set
Whether property 'AccelRate' was received from GB2004.


JumpZ

protected double JumpZ
Bot Jump's Z boost.


JumpZ_Set

protected boolean JumpZ_Set
Whether property 'JumpZ' was received from GB2004.


MultiJumpBoost

protected double MultiJumpBoost
Not used in GB.


MultiJumpBoost_Set

protected boolean MultiJumpBoost_Set
Whether property 'MultiJumpBoost' was received from GB2004.


MaxFallSpeed

protected double MaxFallSpeed
Max fall speed of the bot.


MaxFallSpeed_Set

protected boolean MaxFallSpeed_Set
Whether property 'MaxFallSpeed' was received from GB2004.


DodgeSpeedFactor

protected double DodgeSpeedFactor
Dodge speed factor.


DodgeSpeedFactor_Set

protected boolean DodgeSpeedFactor_Set
Whether property 'DodgeSpeedFactor' was received from GB2004.


DodgeSpeedZ

protected double DodgeSpeedZ
Dodge jump Z boost of the bot.


DodgeSpeedZ_Set

protected boolean DodgeSpeedZ_Set
Whether property 'DodgeSpeedZ' was received from GB2004.


AirControl

protected double AirControl
How well can be the bot controlled in the air (ranges from 0 to 1).


AirControl_Set

protected boolean AirControl_Set
Whether property 'AirControl' was received from GB2004.

Constructor Detail

InitedMessageMessage

public InitedMessageMessage()
Parameter-less contructor for the message.


InitedMessageMessage

public InitedMessageMessage(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 the message 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.

Parameters:
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).

InitedMessageMessage

public InitedMessageMessage(InitedMessageMessage original)
Cloning constructor from the full message.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
Specified by:
getId in interface IWorldObjectUpdatedEvent
Specified by:
getId in interface IWorldObject
Specified by:
getId in interface ICompositeWorldObjectUpdatedEvent
Overrides:
getId in class InitedMessage

setTeamId

protected void setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.


getTeamId

public ITeamId getTeamId()

getBotId

public UnrealId getBotId()
Description copied from class: InitedMessage
A unique unreal Id of the new bot.

Specified by:
getBotId in class InitedMessage

getHealthStart

public int getHealthStart()
Description copied from class: InitedMessage
Bot will always start with this health amount (usually 100).

Specified by:
getHealthStart in class InitedMessage

getHealthFull

public int getHealthFull()
Description copied from class: InitedMessage
Full health of the bot (usually 100).

Specified by:
getHealthFull in class InitedMessage

getHealthMax

public int getHealthMax()
Description copied from class: InitedMessage
Maximum health of the bot (default 199).

Specified by:
getHealthMax in class InitedMessage

getAdrenalineStart

public double getAdrenalineStart()
Description copied from class: InitedMessage
Amount of adrenaline at the start. Usually 0.

Specified by:
getAdrenalineStart in class InitedMessage

getAdrenalineMax

public double getAdrenalineMax()
Description copied from class: InitedMessage
Maxium amount of the adrenaline. Usually 100 (this can trigger the combos).

Specified by:
getAdrenalineMax in class InitedMessage

getShieldStrengthStart

public int getShieldStrengthStart()
Description copied from class: InitedMessage
Starting strength of the bot armor (usually 0).

Specified by:
getShieldStrengthStart in class InitedMessage

getShieldStrengthMax

public int getShieldStrengthMax()
Description copied from class: InitedMessage
Maximum strength of the bot armor (usually 150).

Specified by:
getShieldStrengthMax in class InitedMessage

getMaxMultiJump

public int getMaxMultiJump()
Description copied from class: InitedMessage
Maximum amount of succesing jumps. Currently limited to double jump in GB.

Specified by:
getMaxMultiJump in class InitedMessage

getDamageScaling

public double getDamageScaling()
Description copied from class: InitedMessage
Damage scaling for this bot. (he will deal reduced damage depending on the setting).

Specified by:
getDamageScaling in class InitedMessage

getGroundSpeed

public double getGroundSpeed()
Description copied from class: InitedMessage
Groundspeed of the bot (on the ground). Default 440.

Specified by:
getGroundSpeed in class InitedMessage

getWaterSpeed

public double getWaterSpeed()
Description copied from class: InitedMessage
Waterspeed of the bot (in the water).

Specified by:
getWaterSpeed in class InitedMessage

getAirSpeed

public double getAirSpeed()
Description copied from class: InitedMessage
AirSpeed of the bot (in the air).

Specified by:
getAirSpeed in class InitedMessage

getLadderSpeed

public double getLadderSpeed()
Description copied from class: InitedMessage
Ladderspeed of the bot (on the ladder).

Specified by:
getLadderSpeed in class InitedMessage

getAccelRate

public double getAccelRate()
Description copied from class: InitedMessage
Accelartion rate of this bot. How fast he accelerates.

Specified by:
getAccelRate in class InitedMessage

getJumpZ

public double getJumpZ()
Description copied from class: InitedMessage
Bot Jump's Z boost.

Specified by:
getJumpZ in class InitedMessage

getMultiJumpBoost

public double getMultiJumpBoost()
Description copied from class: InitedMessage
Not used in GB.

Specified by:
getMultiJumpBoost in class InitedMessage

getMaxFallSpeed

public double getMaxFallSpeed()
Description copied from class: InitedMessage
Max fall speed of the bot.

Specified by:
getMaxFallSpeed in class InitedMessage

getDodgeSpeedFactor

public double getDodgeSpeedFactor()
Description copied from class: InitedMessage
Dodge speed factor.

Specified by:
getDodgeSpeedFactor in class InitedMessage

getDodgeSpeedZ

public double getDodgeSpeedZ()
Description copied from class: InitedMessage
Dodge jump Z boost of the bot.

Specified by:
getDodgeSpeedZ in class InitedMessage

getAirControl

public double getAirControl()
Description copied from class: InitedMessage
How well can be the bot controlled in the air (ranges from 0 to 1).

Specified by:
getAirControl in class InitedMessage

getLocal

public InitedMessageLocal getLocal()
Specified by:
getLocal in interface ICompositeWorldObject

getShared

public InitedMessageShared getShared()
Specified by:
getShared in interface ICompositeWorldObject

getStatic

public InitedMessageStatic getStatic()
Specified by:
getStatic in interface ICompositeWorldObject

update

public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
Specified by:
update in interface IWorldObjectUpdatedEvent

getLocalEvent

public ILocalWorldObjectUpdatedEvent getLocalEvent()
Specified by:
getLocalEvent in interface ICompositeWorldObjectUpdatedEvent

getSharedEvent

public ISharedWorldObjectUpdatedEvent getSharedEvent()
Specified by:
getSharedEvent in interface ICompositeWorldObjectUpdatedEvent

getStaticEvent

public IStaticWorldObjectUpdatedEvent getStaticEvent()
Specified by:
getStaticEvent in interface ICompositeWorldObjectUpdatedEvent

toString

public String toString()
Overrides:
toString in class InitedMessage

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class InitedMessage


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.