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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageLocalImpl
All Implemented Interfaces:
IWorldObject, ILocalWorldObject, java.lang.Cloneable

public class InitedMessageLocalImpl
extends InitedMessageLocal

Implementation of the local part of the GameBots2004 message INITED.

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
static class InitedMessageLocalImpl.InitedMessageLocalUpdate
           
 
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  double WaterSpeed
          Waterspeed of the bot (in the water).
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageLocal
InitedMessageId, SimTime
 
Constructor Summary
InitedMessageLocalImpl()
          Parameter-less contructor for the message.
InitedMessageLocalImpl(InitedMessage original)
          Cloning constructor from the full message.
InitedMessageLocalImpl(InitedMessageLocal original)
          Cloning constructor from the message part.
InitedMessageLocalImpl(InitedMessageLocalImpl original)
          Cloning constructor from the full message.
 
Method Summary
 InitedMessageLocalImpl clone()
           
 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).
 InitedMessageLocalImpl getLocal()
           
 double getMaxFallSpeed()
          Max fall speed of the bot.
 int getMaxMultiJump()
          Maximum amount of succesing jumps.
 double getMultiJumpBoost()
          Not used in GB.
 ISharedWorldObject getShared()
           
 int getShieldStrengthMax()
          Maximum strength of the bot armor (usually 150).
 int getShieldStrengthStart()
          Starting strength of the bot armor (usually 0).
 IStaticWorldObject getStatic()
           
 double getWaterSpeed()
          Waterspeed of the bot (in the water).
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageLocal
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

InitedMessageLocalImpl

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


InitedMessageLocalImpl

public InitedMessageLocalImpl(InitedMessage original)
Cloning constructor from the full message.

Parameters:
original -

InitedMessageLocalImpl

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

Parameters:
original -

InitedMessageLocalImpl

public InitedMessageLocalImpl(InitedMessageLocal original)
Cloning constructor from the message part.

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 IWorldObject
Overrides:
getId in class InitedMessageLocal
Returns:

setSimTime

public void setSimTime(long SimTime)
Description copied from class: InitedMessageLocal
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class InitedMessageLocal

clone

public InitedMessageLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class InitedMessageLocal

getBotId

public UnrealId getBotId()
A unique unreal Id of the new bot.

Specified by:
getBotId in class InitedMessageLocal

getHealthStart

public int getHealthStart()
Bot will always start with this health amount (usually 100).

Specified by:
getHealthStart in class InitedMessageLocal

getHealthFull

public int getHealthFull()
Full health of the bot (usually 100).

Specified by:
getHealthFull in class InitedMessageLocal

getHealthMax

public int getHealthMax()
Maximum health of the bot (default 199).

Specified by:
getHealthMax in class InitedMessageLocal

getAdrenalineStart

public double getAdrenalineStart()
Amount of adrenaline at the start. Usually 0.

Specified by:
getAdrenalineStart in class InitedMessageLocal

getAdrenalineMax

public double getAdrenalineMax()
Maxium amount of the adrenaline. Usually 100 (this can trigger the combos).

Specified by:
getAdrenalineMax in class InitedMessageLocal

getShieldStrengthStart

public int getShieldStrengthStart()
Starting strength of the bot armor (usually 0).

Specified by:
getShieldStrengthStart in class InitedMessageLocal

getShieldStrengthMax

public int getShieldStrengthMax()
Maximum strength of the bot armor (usually 150).

Specified by:
getShieldStrengthMax in class InitedMessageLocal

getMaxMultiJump

public int getMaxMultiJump()
Maximum amount of succesing jumps. Currently limited to double jump in GB.

Specified by:
getMaxMultiJump in class InitedMessageLocal

getDamageScaling

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

Specified by:
getDamageScaling in class InitedMessageLocal

getGroundSpeed

public double getGroundSpeed()
Groundspeed of the bot (on the ground). Default 440.

Specified by:
getGroundSpeed in class InitedMessageLocal

getWaterSpeed

public double getWaterSpeed()
Waterspeed of the bot (in the water).

Specified by:
getWaterSpeed in class InitedMessageLocal

getAirSpeed

public double getAirSpeed()
AirSpeed of the bot (in the air).

Specified by:
getAirSpeed in class InitedMessageLocal

getLadderSpeed

public double getLadderSpeed()
Ladderspeed of the bot (on the ladder).

Specified by:
getLadderSpeed in class InitedMessageLocal

getAccelRate

public double getAccelRate()
Accelartion rate of this bot. How fast he accelerates.

Specified by:
getAccelRate in class InitedMessageLocal

getJumpZ

public double getJumpZ()
Bot Jump's Z boost.

Specified by:
getJumpZ in class InitedMessageLocal

getMultiJumpBoost

public double getMultiJumpBoost()
Not used in GB.

Specified by:
getMultiJumpBoost in class InitedMessageLocal

getMaxFallSpeed

public double getMaxFallSpeed()
Max fall speed of the bot.

Specified by:
getMaxFallSpeed in class InitedMessageLocal

getDodgeSpeedFactor

public double getDodgeSpeedFactor()
Dodge speed factor.

Specified by:
getDodgeSpeedFactor in class InitedMessageLocal

getDodgeSpeedZ

public double getDodgeSpeedZ()
Dodge jump Z boost of the bot.

Specified by:
getDodgeSpeedZ in class InitedMessageLocal

getAirControl

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

Specified by:
getAirControl in class InitedMessageLocal

getLocal

public InitedMessageLocalImpl getLocal()
Overrides:
getLocal in class InitedMessageLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class InitedMessageLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class InitedMessageLocal

toString

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

toHtmlString

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