cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class MoverMessage.MoverStaticMessage

Package class diagram package MoverMessage.MoverStaticMessage
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.MoverMessage.MoverStaticMessage
All Implemented Interfaces:
IWorldObject, IStaticWorldObject
Enclosing class:
MoverMessage

public class MoverMessage.MoverStaticMessage
extends MoverStatic

Implementation of the static part of the GameBots2004 message MOV, used to facade MOVMessage.

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.


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStatic
SimTime
 
Constructor Summary
MoverMessage.MoverStaticMessage()
           
 
Method Summary
 MoverMessage.MoverStaticMessage 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.
 String getType()
          String class of the mover.
 boolean isDamageTrig()
          True if the mover needs to be shot to be activated.
 boolean isDifferentFrom(IStaticWorldObject other)
           
 boolean isIsMoving()
          Does the mover move right now?
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverStatic
getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoverMessage.MoverStaticMessage

public MoverMessage.MoverStaticMessage()
Method Detail

clone

public MoverMessage.MoverStaticMessage 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

isDamageTrig

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

Specified by:
isDamageTrig in class MoverStatic

getType

public 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

isDifferentFrom

public boolean isDifferentFrom(IStaticWorldObject other)
Specified by:
isDifferentFrom in interface IStaticWorldObject
Overrides:
isDifferentFrom in class MoverStatic

toString

public String toString()
Overrides:
toString in class MoverStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class MoverStatic


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.