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

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.InitedMessageMessage.InitedMessageLocalMessage
All Implemented Interfaces:
IWorldObject, ILocalWorldObject, java.lang.Cloneable
Enclosing class:
InitedMessageMessage

public class InitedMessageMessage.InitedMessageLocalMessage
extends InitedMessageLocal

Implementation of the local part of the GameBots2004 message INITED, used to facade INITEDMessage.

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.


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageLocal
InitedMessageId, SimTime
 
Constructor Summary
InitedMessageMessage.InitedMessageLocalMessage()
           
 
Method Summary
 InitedMessageMessage.InitedMessageLocalMessage 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).
 InitedMessageMessage.InitedMessageLocalMessage 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).
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageLocal
getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InitedMessageMessage.InitedMessageLocalMessage

public InitedMessageMessage.InitedMessageLocalMessage()
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:

clone

public InitedMessageMessage.InitedMessageLocalMessage clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class InitedMessageLocal

getLocal

public InitedMessageMessage.InitedMessageLocalMessage getLocal()
Overrides:
getLocal in class InitedMessageLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class InitedMessageLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic 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

toString

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

toHtmlString

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