testing.physicsEngine.guiTest
Class CornerTest

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

public class CornerTest
extends AbstractTestEnvironment

Test collision of a ball with a corner.

Author:
Alex Sloan

Field Summary
 
Fields inherited from class testing.physicsEngine.guiTest.AbstractTestEnvironment
DISPLAY_HEIGHT, DISPLAY_WIDTH, loopCount, myNewBodies, needsReset, recentUserActivity
 
Constructor Summary
CornerTest()
           
 
Method Summary
protected  void drawGUItext(java.awt.Graphics2D g)
          Demo customisable GUI render
(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, keyHit, mouseClick, run, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CornerTest

public CornerTest()
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

drawGUItext

protected void drawGUItext(java.awt.Graphics2D g)
Description copied from class: AbstractTestEnvironment
Demo customisable GUI render

Overrides:
drawGUItext in class AbstractTestEnvironment
Parameters:
g - The graphics context to use for rendering here

main

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