KinematicSimulator
Class PhysicsStrategy

java.lang.Object
  |
  +--KinematicSimulator.PhysicsStrategy
Direct Known Subclasses:
NewtonianPhysicsStrategy

public abstract class PhysicsStrategy
extends java.lang.Object

Abstract Physics Strategy class. All physics strategies will be called by applyPhysics(Vector). The vector contains entities. The physics strategy is responsible for updating the velocities of the objects in the vector.


Constructor Summary
PhysicsStrategy()
           
 
Method Summary
abstract  void applyPhysics(java.util.Vector v)
           
abstract  void setSize(int w, int h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicsStrategy

public PhysicsStrategy()
Method Detail

applyPhysics

public abstract void applyPhysics(java.util.Vector v)

setSize

public abstract void setSize(int w,
                             int h)