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

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileLocalImpl.IncomingProjectileLocalUpdate
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, IWorldObjectEvent, ILocalWorldObjectUpdatedEvent, IGBWorldObjectEvent, Event
Enclosing class:
IncomingProjectileLocalImpl

public static class IncomingProjectileLocalImpl.IncomingProjectileLocalUpdate
extends java.lang.Object
implements ILocalWorldObjectUpdatedEvent, IGBWorldObjectEvent


Field Summary
protected  IncomingProjectileLocal data
           
protected  long time
           
 
Constructor Summary
IncomingProjectileLocalImpl.IncomingProjectileLocalUpdate(IncomingProjectileLocal moverLocal, long time)
           
 
Method Summary
 WorldObjectId getId()
          Id of the object where the event has occurred.
 IWorldObject getObject()
          Instance of the object.
 long getSimTime()
          Time when the change has happened inside the environment.
 IWorldObjectUpdateResult<ILocalWorldObject> update(ILocalWorldObject object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

protected long time

data

protected IncomingProjectileLocal data
Constructor Detail

IncomingProjectileLocalImpl.IncomingProjectileLocalUpdate

public IncomingProjectileLocalImpl.IncomingProjectileLocalUpdate(IncomingProjectileLocal moverLocal,
                                                                 long time)
Method Detail

update

public IWorldObjectUpdateResult<ILocalWorldObject> update(ILocalWorldObject object)
Specified by:
update in interface ILocalWorldObjectUpdatedEvent

getSimTime

public long getSimTime()
Description copied from interface: IWorldChangeEvent
Time when the change has happened inside the environment.

Specified by:
getSimTime in interface IWorldChangeEvent
Specified by:
getSimTime in interface IWorldEvent
Returns:
timestamp

getObject

public IWorldObject getObject()
Description copied from interface: IWorldObjectEvent
Instance of the object.

Specified by:
getObject in interface IWorldObjectEvent
Returns:

getId

public WorldObjectId getId()
Description copied from interface: IWorldObjectEvent
Id of the object where the event has occurred.

Specified by:
getId in interface IWorldObjectEvent
Specified by:
getId in interface ILocalWorldObjectUpdatedEvent
Returns: