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

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.InitedMessageCompositeImpl
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, IWorldObject, ICompositeWorldObject, Event

public class InitedMessageCompositeImpl
extends InitedMessage

Composite implementation of the INITED abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.

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
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
InitedMessage.InitedMessageUpdate
 
Field Summary
protected  InitedMessageLocalImpl partLocal
           
protected  InitedMessageStaticImpl partStatic
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage
InitedMessageId, PROTOTYPE, SimTime
 
Constructor Summary
InitedMessageCompositeImpl()
          Parameter-less contructor for the message.
InitedMessageCompositeImpl(InitedMessageCompositeImpl original)
          Cloning constructor.
InitedMessageCompositeImpl(InitedMessageLocalImpl partLocal, InitedMessageSharedImpl partShared, InitedMessageStaticImpl partStatic)
          Composite-impl constructor.
 
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()
           
 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.InitedMessage
getSimTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

partStatic

protected InitedMessageStaticImpl partStatic

partLocal

protected InitedMessageLocalImpl partLocal
Constructor Detail

InitedMessageCompositeImpl

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


InitedMessageCompositeImpl

public InitedMessageCompositeImpl(InitedMessageLocalImpl partLocal,
                                  InitedMessageSharedImpl partShared,
                                  InitedMessageStaticImpl partStatic)
Composite-impl constructor. It assembles the message from its three fragments - local/shared/static.

Parameters:
partLocal - local-part of the message
partShared - shared-part of the message
partStatic - static-part of the message

InitedMessageCompositeImpl

public InitedMessageCompositeImpl(InitedMessageCompositeImpl original)
Cloning constructor.

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

setSimTime

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

Overrides:
setSimTime in class InitedMessage

getStatic

public InitedMessageStatic getStatic()

getLocal

public InitedMessageLocal getLocal()

getShared

public InitedMessageShared getShared()

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

toString

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

toHtmlString

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