edu.eside.flingbox.bodies
Class Body

java.lang.Object
  extended by edu.eside.flingbox.bodies.Body
All Implemented Interfaces:
XmlExporter.XmlSerializable, XmlImporter.XmlParseable
Direct Known Subclasses:
Polygon

public abstract class Body
extends java.lang.Object
implements XmlExporter.XmlSerializable, XmlImporter.XmlParseable

Body is a general abstraction class which handles basic data that any object should have. Any physical object on scene should inherit from Body. Bodies which will be rendered should inherit from Body too.


Method Summary
 PhysicBody getPhysics()
           
 RenderBody getRender()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.eside.flingbox.xml.XmlExporter.XmlSerializable
writeXml
 
Methods inherited from interface edu.eside.flingbox.xml.XmlImporter.XmlParseable
readXml
 

Method Detail

getRender

public RenderBody getRender()
Returns:
object's render instance. NOTE: Can be null!

getPhysics

public PhysicBody getPhysics()
Returns:
object's physics instance. NOTE: Can be null!