testing.physicsEngine.guiTest
Class SimpleCollisionTest

java.lang.Object
  extended by testing.physicsEngine.guiTest.AbstractTestEnvironment
      extended by testing.physicsEngine.guiTest.SimpleCollisionTest

public class SimpleCollisionTest
extends AbstractTestEnvironment

Simple test for checking collisions. Involves dropping a circle and a rectangle onto an immovable bigger circle.

Author:
Peng Shi

Field Summary
 
Fields inherited from class testing.physicsEngine.guiTest.AbstractTestEnvironment
DISPLAY_HEIGHT, DISPLAY_WIDTH, loopCount, myNewBodies, needsReset, recentUserActivity
 
Constructor Summary
SimpleCollisionTest()
           
 
Method Summary
(package private)  java.util.List<PhysicalParameters> initBodies()
          This method must be implemented by extending classes, it returns the list of PhysicalParameters representing each of the bodies in the world, set to their initial positions.
(package private)  PhysicsEngine initEngine()
          This method must be implemented by extending classes, and returns the PhysicsEngine properly initialized.
static void main(java.lang.String[] args)
           
 
Methods inherited from class testing.physicsEngine.guiTest.AbstractTestEnvironment
createWalls, drawGUItext, keyHit, mouseClick, run, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCollisionTest

public SimpleCollisionTest()
Method Detail

initBodies

java.util.List<PhysicalParameters> initBodies()
Description copied from class: AbstractTestEnvironment
This method must be implemented by extending classes, it returns the list of PhysicalParameters representing each of the bodies in the world, set to their initial positions.

Specified by:
initBodies in class AbstractTestEnvironment

initEngine

PhysicsEngine initEngine()
Description copied from class: AbstractTestEnvironment
This method must be implemented by extending classes, and returns the PhysicsEngine properly initialized.

Specified by:
initEngine in class AbstractTestEnvironment

main

public static void main(java.lang.String[] args)