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

Package class diagram package AutoTraceRayStaticImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayStaticImpl
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject, cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject

public class AutoTraceRayStaticImpl
extends AutoTraceRayStatic

Implementation of the static part of the GameBots2004 message ATR.

Complete message documentation: Synchronous message. Contains the results of automatically casted rays. One ATR message is for one casted ray. New automatically casted rays can be defined by ADDRAY command and removed by REMOVERAY command.


Nested Class Summary
static class AutoTraceRayStaticImpl.AutoTraceRayStaticUpdate
           
 
Field Summary
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          An Id for this ray (should be unique), assigned by the user when adding ray.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayStatic
SimTime
 
Constructor Summary
AutoTraceRayStaticImpl()
          Parameter-less contructor for the message.
AutoTraceRayStaticImpl(AutoTraceRay original)
          Cloning constructor from the full message.
AutoTraceRayStaticImpl(AutoTraceRayStatic original)
          Cloning constructor from the message part.
AutoTraceRayStaticImpl(AutoTraceRayStaticImpl original)
          Cloning constructor from the full message.
AutoTraceRayStaticImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
          Creates new instance of the message AutoTraceRay.
 
Method Summary
 AutoTraceRayStaticImpl clone()
           
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          An Id for this ray (should be unique), assigned by the user when adding ray.
 boolean isDifferentFrom(cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject other)
           
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayStatic
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Id

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
An Id for this ray (should be unique), assigned by the user when adding ray.

Constructor Detail

AutoTraceRayStaticImpl

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


AutoTraceRayStaticImpl

public AutoTraceRayStaticImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
Creates new instance of the message AutoTraceRay. Synchronous message. Contains the results of automatically casted rays. One ATR message is for one casted ray. New automatically casted rays can be defined by ADDRAY command and removed by REMOVERAY command. Corresponding GameBots message (static part) is ATR.

Parameters:
Id - An Id for this ray (should be unique), assigned by the user when adding ray.

AutoTraceRayStaticImpl

public AutoTraceRayStaticImpl(AutoTraceRay original)
Cloning constructor from the full message.

Parameters:
original -

AutoTraceRayStaticImpl

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

Parameters:
original -

AutoTraceRayStaticImpl

public AutoTraceRayStaticImpl(AutoTraceRayStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class AutoTraceRayStatic

clone

public AutoTraceRayStaticImpl clone()
Specified by:
clone in class AutoTraceRayStatic

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
An Id for this ray (should be unique), assigned by the user when adding ray.

Specified by:
getId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
Specified by:
getId in class AutoTraceRayStatic

isDifferentFrom

public boolean isDifferentFrom(cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject other)
Specified by:
isDifferentFrom in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject
Overrides:
isDifferentFrom in class AutoTraceRayStatic

toString

public String toString()
Overrides:
toString in class AutoTraceRayStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class AutoTraceRayStatic


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