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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStaticImpl
All Implemented Interfaces:
IWorldObject, IStaticWorldObject

public class MoverStaticImpl
extends MoverStatic

Implementation of the static part of the GameBots2004 message MOV.

Complete message documentation: Synchronous message. Movers can be doors, elevators, or any other chunk of architecture that can move. They generally need to be either run into, or activated by shooting or pressing a button. We are working on ways to provide bots with more of the information they need to deal with movers appropriately.


Nested Class Summary
static class MoverStaticImpl.MoverStaticUpdate
           
 
Field Summary
protected  Location BasePos
          Base position of the mover.
protected  Location BaseRot
          Base rotation of the mover.
protected  boolean DamageTrig
          True if the mover needs to be shot to be activated.
protected  double DelayTime
          Delay before starting to open (or before lift starts to move).
protected  UnrealId Id
          A unique Id of this mover assigned by the game.
protected  boolean IsMoving
          Does the mover move right now?
protected  double MoveTime
          How long the mover moves, when it becomes triggered, before it stops.
protected  UnrealId NavPointMarker
          Navigation point marking this mover.
protected  double OpenTime
          How long the mover stands still when it reaches its destination position.
protected  java.lang.String Type
          String class of the mover.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStatic
SimTime
 
Constructor Summary
MoverStaticImpl()
          Parameter-less contructor for the message.
MoverStaticImpl(Mover original)
          Cloning constructor from the full message.
MoverStaticImpl(MoverStatic original)
          Cloning constructor from the message part.
MoverStaticImpl(MoverStaticImpl original)
          Cloning constructor from the full message.
MoverStaticImpl(UnrealId Id, boolean DamageTrig, java.lang.String Type, boolean IsMoving, double MoveTime, double OpenTime, Location BasePos, Location BaseRot, double DelayTime, UnrealId NavPointMarker)
          Creates new instance of the message Mover.
 
Method Summary
 MoverStaticImpl clone()
           
 Location getBasePos()
          Base position of the mover.
 Location getBaseRot()
          Base rotation of the mover.
 double getDelayTime()
          Delay before starting to open (or before lift starts to move).
 UnrealId getId()
          A unique Id of this mover assigned by the game.
 double getMoveTime()
          How long the mover moves, when it becomes triggered, before it stops.
 UnrealId getNavPointMarker()
          Navigation point marking this mover.
 double getOpenTime()
          How long the mover stands still when it reaches its destination position.
 java.lang.String getType()
          String class of the mover.
 boolean isDamageTrig()
          True if the mover needs to be shot to be activated.
 boolean isIsMoving()
          Does the mover move right now?
 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.MoverStatic
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Id

protected UnrealId Id
A unique Id of this mover assigned by the game.


DamageTrig

protected boolean DamageTrig
True if the mover needs to be shot to be activated.


Type

protected java.lang.String Type
String class of the mover.


IsMoving

protected boolean IsMoving
Does the mover move right now?


MoveTime

protected double MoveTime
How long the mover moves, when it becomes triggered, before it stops.


OpenTime

protected double OpenTime
How long the mover stands still when it reaches its destination position. After this time, the mover returns back to its initial position.


BasePos

protected Location BasePos
Base position of the mover.


BaseRot

protected Location BaseRot
Base rotation of the mover.


DelayTime

protected double DelayTime
Delay before starting to open (or before lift starts to move).


NavPointMarker

protected UnrealId NavPointMarker
Navigation point marking this mover. We can parse this Id to get information about type of the mover. Marker Id contains "lift" string if it is a lift, "door" string if it is a door, etc.

Constructor Detail

MoverStaticImpl

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


MoverStaticImpl

public MoverStaticImpl(UnrealId Id,
                       boolean DamageTrig,
                       java.lang.String Type,
                       boolean IsMoving,
                       double MoveTime,
                       double OpenTime,
                       Location BasePos,
                       Location BaseRot,
                       double DelayTime,
                       UnrealId NavPointMarker)
Creates new instance of the message Mover. Synchronous message. Movers can be doors, elevators, or any other chunk of architecture that can move. They generally need to be either run into, or activated by shooting or pressing a button. We are working on ways to provide bots with more of the information they need to deal with movers appropriately. Corresponding GameBots message (static part) is MOV.

Parameters:
Id - A unique Id of this mover assigned by the game.
DamageTrig - True if the mover needs to be shot to be activated.
Type - String class of the mover.
IsMoving - Does the mover move right now?
MoveTime - How long the mover moves, when it becomes triggered, before it stops.
OpenTime - How long the mover stands still when it reaches its destination position. After this time, the mover returns back to its initial position.
BasePos - Base position of the mover.
BaseRot - Base rotation of the mover.
DelayTime - Delay before starting to open (or before lift starts to move).
NavPointMarker - Navigation point marking this mover. We can parse this Id to get information about type of the mover. Marker Id contains "lift" string if it is a lift, "door" string if it is a door, etc.

MoverStaticImpl

public MoverStaticImpl(Mover original)
Cloning constructor from the full message.

Parameters:
original -

MoverStaticImpl

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

Parameters:
original -

MoverStaticImpl

public MoverStaticImpl(MoverStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class MoverStatic

clone

public MoverStaticImpl clone()
Specified by:
clone in class MoverStatic

getId

public UnrealId getId()
A unique Id of this mover assigned by the game.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class MoverStatic
Returns:

isDamageTrig

public boolean isDamageTrig()
True if the mover needs to be shot to be activated.

Specified by:
isDamageTrig in class MoverStatic

getType

public java.lang.String getType()
String class of the mover.

Specified by:
getType in class MoverStatic

isIsMoving

public boolean isIsMoving()
Does the mover move right now?

Specified by:
isIsMoving in class MoverStatic

getMoveTime

public double getMoveTime()
How long the mover moves, when it becomes triggered, before it stops.

Specified by:
getMoveTime in class MoverStatic

getOpenTime

public double getOpenTime()
How long the mover stands still when it reaches its destination position. After this time, the mover returns back to its initial position.

Specified by:
getOpenTime in class MoverStatic

getBasePos

public Location getBasePos()
Base position of the mover.

Specified by:
getBasePos in class MoverStatic

getBaseRot

public Location getBaseRot()
Base rotation of the mover.

Specified by:
getBaseRot in class MoverStatic

getDelayTime

public double getDelayTime()
Delay before starting to open (or before lift starts to move).

Specified by:
getDelayTime in class MoverStatic

getNavPointMarker

public UnrealId getNavPointMarker()
Navigation point marking this mover. We can parse this Id to get information about type of the mover. Marker Id contains "lift" string if it is a lift, "door" string if it is a door, etc.

Specified by:
getNavPointMarker in class MoverStatic

toString

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

toHtmlString

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