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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverLocalImpl
All Implemented Interfaces:
IWorldObject, ILocalViewable, ILocalWorldObject, ILocalGBViewable, java.lang.Cloneable

public class MoverLocalImpl
extends MoverLocal

Implementation of the local 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 MoverLocalImpl.MoverLocalUpdate
           
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverLocal
MoverLocal.ObjectDisappeared
 
Field Summary
protected  UnrealId Id
          A unique Id of this mover assigned by the game.
protected  boolean Reachable
          True if the bot can run here, false otherwise.
protected  boolean Visible
          If the mover is in the field of view of the bot.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MoverLocal
SimTime
 
Constructor Summary
MoverLocalImpl()
          Parameter-less contructor for the message.
MoverLocalImpl(Mover original)
          Cloning constructor from the full message.
MoverLocalImpl(MoverLocal original)
          Cloning constructor from the message part.
MoverLocalImpl(MoverLocalImpl original)
          Cloning constructor from the full message.
MoverLocalImpl(UnrealId Id, boolean Visible, boolean Reachable)
          Creates new instance of the message Mover.
 
Method Summary
 MoverLocalImpl clone()
           
 UnrealId getId()
          A unique Id of this mover assigned by the game.
 MoverLocalImpl getLocal()
           
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 boolean isReachable()
          True if the bot can run here, false otherwise.
 boolean isVisible()
          If the mover is in the field of view of the bot.
 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.MoverLocal
createDisappearEvent, 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.


Visible

protected boolean Visible
If the mover is in the field of view of the bot.


Reachable

protected boolean Reachable
True if the bot can run here, false otherwise.

Constructor Detail

MoverLocalImpl

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


MoverLocalImpl

public MoverLocalImpl(UnrealId Id,
                      boolean Visible,
                      boolean Reachable)
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 (local part) is MOV.

Parameters:
Id - A unique Id of this mover assigned by the game.
Visible - If the mover is in the field of view of the bot.
Reachable - True if the bot can run here, false otherwise.

MoverLocalImpl

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

Parameters:
original -

MoverLocalImpl

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

Parameters:
original -

MoverLocalImpl

public MoverLocalImpl(MoverLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class MoverLocal

clone

public MoverLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class MoverLocal

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

isVisible

public boolean isVisible()
If the mover is in the field of view of the bot.

Specified by:
isVisible in interface ILocalViewable
Specified by:
isVisible in class MoverLocal
Returns:

isReachable

public boolean isReachable()
True if the bot can run here, false otherwise.

Specified by:
isReachable in class MoverLocal

getLocal

public MoverLocalImpl getLocal()
Overrides:
getLocal in class MoverLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class MoverLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class MoverLocal

toString

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

toHtmlString

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