com.threerings.tudey.server
Class ClientLiaison.TickRecord

java.lang.Object
  extended by com.threerings.tudey.server.ClientLiaison.TickRecord
Enclosing class:
ClientLiaison

protected static class ClientLiaison.TickRecord
extends Object

Contains the state at a single tick.


Field Summary
protected  Actor[] _actorsAdded
          The actors added on this tick.
protected  Actor[] _actorsRemoved
          The states on the previous tick of actors removed on this tick.
protected  ActorDelta[] _actorsUpdated
          The deltas of actors updated on this tick.
protected  Effect[] _effectsFired
          The effects fired on this tick.
protected  int _timestamp
          The timestamp of this record.
 SceneDeltaEvent event
          A reference to the transmitted event.
 
Constructor Summary
ClientLiaison.TickRecord()
          Creates an empty reference record.
ClientLiaison.TickRecord(int timestamp, Actor[] actorsAdded, ActorDelta[] actorsUpdated, Actor[] actorsRemoved, Effect[] effectsFired)
          Creates a new record.
 
Method Summary
 Actor[] getActorsAdded()
          Returns the actors added on this tick.
 Actor[] getActorsRemoved()
          Returns the states on the previous tick of actors removed on this tick.
 ActorDelta[] getActorsUpdated()
          Returns the deltas of actors updated on this tick.
 Effect[] getEffectsFired()
          Returns the effects fired on this tick.
 int getTimestamp()
          Returns the timestamp of this record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event

public SceneDeltaEvent event
A reference to the transmitted event.


_timestamp

protected int _timestamp
The timestamp of this record.


_actorsAdded

protected Actor[] _actorsAdded
The actors added on this tick.


_actorsUpdated

protected ActorDelta[] _actorsUpdated
The deltas of actors updated on this tick.


_actorsRemoved

protected Actor[] _actorsRemoved
The states on the previous tick of actors removed on this tick.


_effectsFired

protected Effect[] _effectsFired
The effects fired on this tick.

Constructor Detail

ClientLiaison.TickRecord

public ClientLiaison.TickRecord()
Creates an empty reference record.


ClientLiaison.TickRecord

public ClientLiaison.TickRecord(int timestamp,
                                Actor[] actorsAdded,
                                ActorDelta[] actorsUpdated,
                                Actor[] actorsRemoved,
                                Effect[] effectsFired)
Creates a new record.

Method Detail

getTimestamp

public int getTimestamp()
Returns the timestamp of this record.


getActorsAdded

public Actor[] getActorsAdded()
Returns the actors added on this tick.


getActorsUpdated

public ActorDelta[] getActorsUpdated()
Returns the deltas of actors updated on this tick.


getActorsRemoved

public Actor[] getActorsRemoved()
Returns the states on the previous tick of actors removed on this tick.


getEffectsFired

public Effect[] getEffectsFired()
Returns the effects fired on this tick.