|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.presents.dobj.DEvent
com.threerings.tudey.dobj.SceneDeltaEvent
public class SceneDeltaEvent
Represents an update to the dynamic state of the scene. Each delta represents difference between the current state and the last state (either the baseline state or the result of applying the last acknowledged delta). These events are published on the client object, rather than the scene object, because they are targeted at specific clients.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Field Summary |
|---|
| Fields inherited from class com.threerings.presents.dobj.DEvent |
|---|
eventId |
| Constructor Summary | |
|---|---|
SceneDeltaEvent(int targetOid,
int sceneOid,
int acknowledge,
short ping,
int reference,
int timestamp,
short elapsed,
Actor[] addedActors,
ActorDelta[] updatedActorDeltas,
int[] removedActorIds,
Effect[] effectsFired)
Creates a new delta event. |
|
| Method Summary | |
|---|---|
boolean |
applyToObject(com.threerings.presents.dobj.DObject target)
|
int |
getAcknowledge()
Returns the timestamp of the last input frame received by the server. |
Actor[] |
getAddedActors()
Returns a reference to the array of actors added to the scene since the last delta, or null for none. |
Effect[] |
getEffectsFired()
Returns the array of effects fired since the last delta, or null for none. |
short |
getElapsed()
Returns the time elapsed since the last tick. |
short |
getPing()
Returns the ping time estimate. |
int |
getReference()
Returns the timestamp of the update that serves as a basis of comparison for this delta (either the last delta known to be acknowledged by the client, or 0 for the baseline). |
int[] |
getRemovedActorIds()
Returns a reference to the array of ids of actors removed from the scene since the last delta, or null for none. |
int |
getSceneOid()
Returns the oid of the scene to which this delta applies. |
int |
getTimestamp()
Returns the timestamp of the delta. |
ActorDelta[] |
getUpdatedActorDeltas()
Returns a reference to the array of deltas for actors updated since the last delta, or null for none. |
| Methods inherited from class com.threerings.presents.dobj.DEvent |
|---|
alreadyApplied, getActualTransport, getSourceOid, getTargetOid, getTransport, isPrivate, noteActualTransport, readField__toid, setSourceOid, setTargetOid, setTransport, toString, writeField__toid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SceneDeltaEvent(int targetOid,
int sceneOid,
int acknowledge,
short ping,
int reference,
int timestamp,
short elapsed,
Actor[] addedActors,
ActorDelta[] updatedActorDeltas,
int[] removedActorIds,
Effect[] effectsFired)
| Method Detail |
|---|
public int getSceneOid()
public int getAcknowledge()
public short getPing()
public int getReference()
public int getTimestamp()
public short getElapsed()
public Actor[] getAddedActors()
null for none.
public ActorDelta[] getUpdatedActorDeltas()
null for none.
public int[] getRemovedActorIds()
null for none.
public Effect[] getEffectsFired()
null for none.
public boolean applyToObject(com.threerings.presents.dobj.DObject target)
throws com.threerings.presents.dobj.ObjectAccessException
applyToObject in class com.threerings.presents.dobj.DEventcom.threerings.presents.dobj.ObjectAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||