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

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

public abstract class InitedMessageLocal
extends InfoMessage
implements ILocalWorldObject

Abstract definition 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.


Field Summary
static UnrealId InitedMessageId
           
protected  long SimTime
           
 
Constructor Summary
InitedMessageLocal()
          Parameter-less contructor for the message.
 
Method Summary
abstract  InitedMessageLocal clone()
           
abstract  double getAccelRate()
          Accelartion rate of this bot.
abstract  double getAdrenalineMax()
          Maxium amount of the adrenaline.
abstract  double getAdrenalineStart()
          Amount of adrenaline at the start.
abstract  double getAirControl()
          How well can be the bot controlled in the air (ranges from 0 to 1).
abstract  double getAirSpeed()
          AirSpeed of the bot (in the air).
abstract  UnrealId getBotId()
          A unique unreal Id of the new bot.
 java.lang.Class getCompositeClass()
           
abstract  double getDamageScaling()
          Damage scaling for this bot.
abstract  double getDodgeSpeedFactor()
          Dodge speed factor.
abstract  double getDodgeSpeedZ()
          Dodge jump Z boost of the bot.
abstract  double getGroundSpeed()
          Groundspeed of the bot (on the ground).
abstract  int getHealthFull()
          Full health of the bot (usually 100).
abstract  int getHealthMax()
          Maximum health of the bot (default 199).
abstract  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.
abstract  double getJumpZ()
          Bot Jump's Z boost.
abstract  double getLadderSpeed()
          Ladderspeed of the bot (on the ladder).
 InitedMessageLocal getLocal()
           
abstract  double getMaxFallSpeed()
          Max fall speed of the bot.
abstract  int getMaxMultiJump()
          Maximum amount of succesing jumps.
abstract  double getMultiJumpBoost()
          Not used in GB.
 ISharedWorldObject getShared()
           
abstract  int getShieldStrengthMax()
          Maximum strength of the bot armor (usually 150).
abstract  int getShieldStrengthStart()
          Starting strength of the bot armor (usually 0).
 long getSimTime()
          Returns world time when the object was seen/updated for the last time.
 IStaticWorldObject getStatic()
           
abstract  double getWaterSpeed()
          Waterspeed of the bot (in the water).
protected  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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

InitedMessageId

public static final UnrealId InitedMessageId

SimTime

protected long SimTime
Constructor Detail

InitedMessageLocal

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

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
Returns:

getSimTime

public long getSimTime()
Description copied from interface: IWorldObject
Returns world time when the object was seen/updated for the last time.

The time suppose to be growing as the simulation carries on.

Always should be actual_timestamp >= any_prevously_recorded_timestamp,

object1.getLastSeenTime() > object2.getLastSeenTime() means that object1 last seen after object2

Specified by:
getSimTime in interface IWorldObject
Returns:

setSimTime

protected void setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.


clone

public abstract InitedMessageLocal clone()
Specified by:
clone in interface ILocalWorldObject
Overrides:
clone in class java.lang.Object

getCompositeClass

public java.lang.Class getCompositeClass()
Specified by:
getCompositeClass in interface ILocalWorldObject

getBotId

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


getHealthStart

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


getHealthFull

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


getHealthMax

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


getAdrenalineStart

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


getAdrenalineMax

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


getShieldStrengthStart

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


getShieldStrengthMax

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


getMaxMultiJump

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


getDamageScaling

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


getGroundSpeed

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


getWaterSpeed

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


getAirSpeed

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


getLadderSpeed

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


getAccelRate

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


getJumpZ

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


getMultiJumpBoost

public abstract double getMultiJumpBoost()
Not used in GB.


getMaxFallSpeed

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


getDodgeSpeedFactor

public abstract double getDodgeSpeedFactor()
Dodge speed factor.


getDodgeSpeedZ

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


getAirControl

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


getLocal

public InitedMessageLocal getLocal()

getShared

public ISharedWorldObject getShared()

getStatic

public IStaticWorldObject getStatic()

toString

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

toHtmlString

public java.lang.String toHtmlString()