|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.action.Actor net.jinx.physics.Universe
public class Universe
Constructor Summary | |
---|---|
Universe(Integrator integrator)
|
|
Universe(Integrator integrator,
Universe parent)
|
Method Summary | |
---|---|
void |
actorAdded(Actor actor,
Scene scene)
Called when an Actor has been added to the Scene. |
void |
actorRemoved(Actor actor,
Scene scene)
Called when an Actor has been removed from the Scene. |
void |
addCollisionDetector(CollisionDetector cd)
|
void |
addForce(Force f)
|
void |
addObject(PhysicalObject obj)
|
Vector |
getForce(PhysicalObject obj)
|
Integrator |
getIntegrator()
|
Universe |
getParent()
Provides the Universe that is the parent of this Universe. |
protected void |
processEvent(ActorEvent event)
Processes an ActorEvent. |
void |
removeCollisionDetector(CollisionDetector cd)
|
void |
removeForce(Force f)
|
void |
removeObject(PhysicalObject obj)
|
void |
setParent(Universe parent)
Sets the parent of this Universe. |
void |
step(float deltaTime)
|
Methods inherited from class net.jinx.action.Actor |
---|
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Universe(Integrator integrator, Universe parent)
public Universe(Integrator integrator)
Method Detail |
---|
public Universe getParent()
public void setParent(Universe parent)
parent
- the Universe to set as parent to this on. Null indicates
there will be no parent.
java.lang.IllegalArgumentException
- if you pass a Universe to itself with
this method.public Integrator getIntegrator()
protected void processEvent(ActorEvent event)
Actor
processEvent
in class Actor
event
- the ActorEvent to process.public void actorAdded(Actor actor, Scene scene)
SceneListener
actorAdded
in interface SceneListener
actor
- the Actor that has been added.scene
- the Scene that this event came from.public void addCollisionDetector(CollisionDetector cd)
public void addObject(PhysicalObject obj)
public void addForce(Force f)
public void actorRemoved(Actor actor, Scene scene)
SceneListener
actorRemoved
in interface SceneListener
actor
- the Actor that has been removed.scene
- the Scene that this event came from.public void removeCollisionDetector(CollisionDetector cd)
public void removeObject(PhysicalObject obj)
public void removeForce(Force f)
public Vector getForce(PhysicalObject obj)
public void step(float deltaTime)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |