cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class IncomingProjectileStaticImpl.IncomingProjectileStaticUpdate

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileStaticImpl.IncomingProjectileStaticUpdate
All Implemented Interfaces:
IWorldChangeEvent, IStaticWorldObjectUpdatedEvent, Event
Enclosing class:
IncomingProjectileStaticImpl

public static class IncomingProjectileStaticImpl.IncomingProjectileStaticUpdate
extends java.lang.Object
implements IStaticWorldObjectUpdatedEvent


Constructor Summary
IncomingProjectileStaticImpl.IncomingProjectileStaticUpdate(IncomingProjectileStatic source, long time)
           
 
Method Summary
 WorldObjectId getId()
           
 long getSimTime()
          Time when the change has happened inside the environment.
 IWorldObjectUpdateResult<IStaticWorldObject> update(IStaticWorldObject object)
          Only possible results are CREATED, DESTROYED or SAME static objects remain the same so they cannot be updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncomingProjectileStaticImpl.IncomingProjectileStaticUpdate

public IncomingProjectileStaticImpl.IncomingProjectileStaticUpdate(IncomingProjectileStatic source,
                                                                   long time)
Method Detail

getSimTime

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

Specified by:
getSimTime in interface IWorldChangeEvent
Returns:
timestamp

getId

public WorldObjectId getId()
Specified by:
getId in interface IStaticWorldObjectUpdatedEvent

update

public IWorldObjectUpdateResult<IStaticWorldObject> update(IStaticWorldObject object)
Description copied from interface: IStaticWorldObjectUpdatedEvent
Only possible results are CREATED, DESTROYED or SAME static objects remain the same so they cannot be updated.

Specified by:
update in interface IStaticWorldObjectUpdatedEvent
Returns: