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

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

public class IncomingProjectileLocalImpl
extends IncomingProjectileLocal

Implementation of the local part of the GameBots2004 message PRJ.

Complete message documentation: Both asynchronous and synchronous message. Incoming projectile that we can see.


Nested Class Summary
static class IncomingProjectileLocalImpl.IncomingProjectileLocalUpdate
           
 
Field Summary
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          Unique Id of the projectile.
protected  double ImpactTime
          Estimated time till impact.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileLocal
SimTime
 
Constructor Summary
IncomingProjectileLocalImpl()
          Parameter-less contructor for the message.
IncomingProjectileLocalImpl(IncomingProjectile original)
          Cloning constructor from the full message.
IncomingProjectileLocalImpl(IncomingProjectileLocal original)
          Cloning constructor from the message part.
IncomingProjectileLocalImpl(IncomingProjectileLocalImpl original)
          Cloning constructor from the full message.
IncomingProjectileLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, double ImpactTime)
          Creates new instance of the message IncomingProjectile.
 
Method Summary
 IncomingProjectileLocalImpl clone()
           
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          Unique Id of the projectile.
 double getImpactTime()
          Estimated time till impact.
 IncomingProjectileLocalImpl getLocal()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
           
 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.IncomingProjectileLocal
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
Unique Id of the projectile.


ImpactTime

protected double ImpactTime
Estimated time till impact.

Constructor Detail

IncomingProjectileLocalImpl

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


IncomingProjectileLocalImpl

public IncomingProjectileLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
                                   double ImpactTime)
Creates new instance of the message IncomingProjectile. Both asynchronous and synchronous message. Incoming projectile that we can see. Corresponding GameBots message (local part) is PRJ.

Parameters:
Id - Unique Id of the projectile.
ImpactTime - Estimated time till impact.

IncomingProjectileLocalImpl

public IncomingProjectileLocalImpl(IncomingProjectile original)
Cloning constructor from the full message.

Parameters:
original -

IncomingProjectileLocalImpl

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

Parameters:
original -

IncomingProjectileLocalImpl

public IncomingProjectileLocalImpl(IncomingProjectileLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class IncomingProjectileLocal

clone

public IncomingProjectileLocalImpl clone()
Specified by:
clone in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject
Specified by:
clone in class IncomingProjectileLocal

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Unique Id of the projectile.

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

getImpactTime

public double getImpactTime()
Estimated time till impact.

Specified by:
getImpactTime in class IncomingProjectileLocal

getLocal

public IncomingProjectileLocalImpl getLocal()
Overrides:
getLocal in class IncomingProjectileLocal

getShared

public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
Overrides:
getShared in class IncomingProjectileLocal

getStatic

public cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
Overrides:
getStatic in class IncomingProjectileLocal

toString

public String toString()
Overrides:
toString in class IncomingProjectileLocal

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class IncomingProjectileLocal


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