Class Replace

java.lang.Object
  |
  +--Update
        |
        +--Replace
All Implemented Interfaces:
java.io.Serializable

public class Replace
extends Update

A Replace Update contains a Body. When the Replace is applied to a World, the Body is added to that World, replacing a Body with the same id if one exists.

See Also:
Serialized Form

Fields inherited from class Update
timestamp
 
Constructor Summary
Replace(Body m)
           
 
Method Summary
 void apply(World w)
          Apply this change to a world.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replace

public Replace(Body m)
Method Detail

apply

public void apply(World w)
Apply this change to a world.
Overrides:
apply in class Update