net.java.dev.joode
Class WorldObject

java.lang.Object
  extended by net.java.dev.joode.WorldObject
All Implemented Interfaces:
java.io.Serializable, SimState
Direct Known Subclasses:
Body, Force, Joint

public abstract class WorldObject
extends java.lang.Object
implements SimState

Superclass of all world objects. Provides a data variable for users specific data.

Created on 14-Oct-2005

Author:
Tom Larkworthy
See Also:
Serialized Form

Field Summary
 java.lang.Object data
          Storage field for user data
 int tag
          do not use, used in InternalStepIsland methods to work out the islands
 World world
          The world this object belongs to.
 
Constructor Summary
protected WorldObject()
          used for cloning
  WorldObject(World world)
           
 
Method Summary
abstract  void destroy()
           
protected  WorldObject partialCloneWorldObject(WorldObject partialClone, ClonedReferences util)
          helper method for subclasses that copies the member variables# to the passed in object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.dev.joode.SimState
cloneState
 

Field Detail

world

public World world
The world this object belongs to.


data

public java.lang.Object data
Storage field for user data


tag

public int tag
do not use, used in InternalStepIsland methods to work out the islands

Constructor Detail

WorldObject

public WorldObject(World world)

WorldObject

protected WorldObject()
used for cloning

Method Detail

destroy

public abstract void destroy()

partialCloneWorldObject

protected WorldObject partialCloneWorldObject(WorldObject partialClone,
                                              ClonedReferences util)
helper method for subclasses that copies the member variables# to the passed in object

Parameters:
partialClone -
util -
Returns: