|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Force
Method Summary | |
---|---|
void |
added(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been added to the simulation. |
void |
applyForce(PhysicalObject object)
Provides the force acting on object due to this Force. |
void |
removed(PhysicalObject obj)
Called by Universe to notify this Force that a PhysicalObject has been removed from the simulation. |
Method Detail |
---|
void added(PhysicalObject obj)
obj
- the PhysicalObject that was added.void removed(PhysicalObject obj)
obj
- the PhysicalObject that was removed.void applyForce(PhysicalObject object)
object
- the PhysicalObject.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |