com.threerings.tudey.dobj
Class ActorDelta

java.lang.Object
  extended by com.threerings.delta.Delta
      extended by com.threerings.delta.ReflectiveDelta
          extended by com.threerings.tudey.dobj.ActorDelta
All Implemented Interfaces:
com.threerings.io.Streamable

public final class ActorDelta
extends ReflectiveDelta

Extends ReflectiveDelta to include the id of the affected actor. Declared final for streaming efficiency.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
ActorDelta()
          No-arg constructor for deserialization.
ActorDelta(Actor original, Actor revised)
          Creates a new actor delta.
 
Method Summary
 int getId()
          Returns the id of the affected actor.
 Delta merge(Delta other)
          Merges this delta with another.
 void readObject(com.threerings.io.ObjectInputStream in)
          Custom read method.
 void writeObject(com.threerings.io.ObjectOutputStream out)
          Custom write method.
 
Methods inherited from class com.threerings.delta.ReflectiveDelta
apply, isEmpty, toString
 
Methods inherited from class com.threerings.delta.Delta
checkDeltable, createDelta
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActorDelta

public ActorDelta(Actor original,
                  Actor revised)
Creates a new actor delta.


ActorDelta

public ActorDelta()
No-arg constructor for deserialization.

Method Detail

getId

public int getId()
Returns the id of the affected actor.


merge

public Delta merge(Delta other)
Description copied from class: Delta
Merges this delta with another.

Overrides:
merge in class ReflectiveDelta
Returns:
a new delta containing the changes included in both.

writeObject

public void writeObject(com.threerings.io.ObjectOutputStream out)
                 throws IOException
Description copied from class: ReflectiveDelta
Custom write method.

Overrides:
writeObject in class ReflectiveDelta
Throws:
IOException

readObject

public void readObject(com.threerings.io.ObjectInputStream in)
                throws IOException,
                       ClassNotFoundException
Description copied from class: ReflectiveDelta
Custom read method.

Overrides:
readObject in class ReflectiveDelta
Throws:
IOException
ClassNotFoundException


Copyright © 2011. All Rights Reserved.