com.threerings.tudey.dobj
Class ActorDelta
java.lang.Object
com.threerings.delta.Delta
com.threerings.delta.ReflectiveDelta
com.threerings.tudey.dobj.ActorDelta
- All Implemented Interfaces:
- Streamable
public final class ActorDelta
- extends ReflectiveDelta
Extends ReflectiveDelta to include the id of the affected actor. Declared final for
streaming efficiency.
|
Field Summary |
protected int |
_id
The id of the affected actor. |
_id
protected int _id
- The id of the affected actor.
ActorDelta
public ActorDelta(Actor original,
Actor revised)
- Creates a new actor delta.
ActorDelta
public ActorDelta()
- No-arg constructor for deserialization.
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(ObjectOutputStream out)
throws IOException
- Description copied from class:
ReflectiveDelta
- Custom write method.
- Overrides:
writeObject in class ReflectiveDelta
- Throws:
IOException
readObject
public void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Description copied from class:
ReflectiveDelta
- Custom read method.
- Overrides:
readObject in class ReflectiveDelta
- Throws:
IOException
ClassNotFoundException