cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class 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, ICompositeWorldObject, Event

public class InitedMessageMessage
extends InitedMessage
implements IWorldObjectUpdatedEvent

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
 
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).
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.
protected  int ShieldStrengthMax
          Maximum strength of the bot armor (usually 150).
protected  int ShieldStrengthStart
          Starting strength of the bot armor (usually 0).
protected  ITeamId TeamId
           
protected  double WaterSpeed
          Waterspeed of the bot (in the water).
 
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()
          Returns an id of the object that is unique among all world objects.
 double getJumpZ()
          Bot Jump's Z boost.
 double getLadderSpeed()
          Ladderspeed of the bot (on the ladder).
 InitedMessageLocal getLocal()
           
 double getMaxFallSpeed()
          Max fall speed of the bot.
 int getMaxMultiJump()
          Maximum amount of succesing jumps.
 double getMultiJumpBoost()
          Not used in GB.
 InitedMessageShared getShared()
           
 int getShieldStrengthMax()
          Maximum strength of the bot armor (usually 150).
 int getShieldStrengthStart()
          Starting strength of the bot armor (usually 0).
 InitedMessageStatic getStatic()
           
 ITeamId getTeamId()
           
 double getWaterSpeed()
          Waterspeed of the bot (in the water).
protected  void setTeamId(ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
getSimTime, setSimTime
 
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.


HealthStart

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


HealthFull

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


HealthMax

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


AdrenalineStart

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


AdrenalineMax

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


ShieldStrengthStart

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


ShieldStrengthMax

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


MaxMultiJump

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


DamageScaling

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


GroundSpeed

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


WaterSpeed

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


AirSpeed

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


LadderSpeed

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


AccelRate

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


JumpZ

protected double JumpZ
Bot Jump's Z boost.


MultiJumpBoost

protected double MultiJumpBoost
Not used in GB.


MaxFallSpeed

protected double MaxFallSpeed
Max fall speed of the bot.


DodgeSpeedFactor

protected double DodgeSpeedFactor
Dodge speed factor.


DodgeSpeedZ

protected double DodgeSpeedZ
Dodge jump Z boost of the bot.


AirControl

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

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()
Description copied from interface: IWorldObject
Returns an id of the object that is unique among all world objects.

Specified by:
getId in interface IWorldObjectUpdatedEvent
Specified by:
getId in interface IWorldObject
Overrides:
getId in class InitedMessage
Returns:

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

toString

public java.lang.String toString()
Overrides:
toString in class InitedMessage

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class InitedMessage