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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, IWorldObject, ICompositeWorldObject, Event
Direct Known Subclasses:
InitedMessageCompositeImpl, InitedMessageMessage

public abstract class InitedMessage
extends InfoMessage
implements IWorldEvent, IWorldChangeEvent, ICompositeWorldObject

Abstract definition 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 InitedMessage.InitedMessageUpdate
           
 
Field Summary
static UnrealId InitedMessageId
           
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  long SimTime
           
 
Constructor Summary
InitedMessage()
          Parameter-less contructor for the message.
 
Method Summary
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.
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).
abstract  double getMaxFallSpeed()
          Max fall speed of the bot.
abstract  int getMaxMultiJump()
          Maximum amount of succesing jumps.
abstract  double getMultiJumpBoost()
          Not used in GB.
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 the simulation time when the event has occurred.
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
getLocal, getShared, getStatic
 

Field Detail

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

InitedMessageId

public static final UnrealId InitedMessageId

SimTime

protected long SimTime
Constructor Detail

InitedMessage

public InitedMessage()
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: IWorldEvent
Returns the simulation time when the event has occurred.

Specified by:
getSimTime in interface IWorldChangeEvent
Specified by:
getSimTime in interface IWorldEvent
Specified by:
getSimTime in interface IWorldObject
Returns:
timestamp

setSimTime

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


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


toString

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

toHtmlString

public java.lang.String toHtmlString()