org.jbox2d.testbed.tests
Class EdgeTest
java.lang.Object
org.jbox2d.testbed.AbstractExample
org.jbox2d.testbed.tests.EdgeTest
public class EdgeTest
- extends AbstractExample
Fields inherited from class org.jbox2d.testbed.AbstractExample |
black, blue, bombSpawning, bombSpawnPoint, boundImages, cachedCamScale, cachedCamX, cachedCamY, gray, green, hasCachedCamera, instructionString, keyDown, m_bomb, m_boundaryListener, m_contactListener, m_debugDraw, m_destructionListener, m_mouseJoint, m_pointCount, m_points, m_textLine, m_world, m_worldAABB, memFree, mouseScreen, mouseWorld, needsReset, newKeyDown, parent, pmousePressed, pmouseScreen, red, settings, textLineHeight, white |
Method Summary |
void |
create()
Create the world geometry for each test. |
void |
createWorld()
Override this if you need to create a different world AABB or gravity vector |
String |
getExampleInstructions()
Returns a string containing example instructions. |
String |
getName()
|
void |
makeBox(float x,
float y,
float size)
|
void |
makeCircle(float x,
float y,
float r)
|
void |
postStep()
Stub for overloading in examples - called after physics step. |
Methods inherited from class org.jbox2d.testbed.AbstractExample |
bindImage, boundaryViolated, completeBombSpawn, initialize, jointDestroyed, keyPressed, keyReleased, launchBomb, launchBomb, mouseDown, mouseMove, mouseUp, preStep, printInstructions, setCamera, spawnBomb, step |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdgeTest
public EdgeTest(TestbedMain t)
createWorld
public void createWorld()
- Description copied from class:
AbstractExample
- Override this if you need to create a different world AABB or gravity vector
- Overrides:
createWorld
in class AbstractExample
getName
public String getName()
- Specified by:
getName
in class AbstractExample
- Returns:
- Title of example.
getExampleInstructions
public String getExampleInstructions()
- Description copied from class:
AbstractExample
- Returns a string containing example instructions.
Overload within an example to provide special instructions
or information.
- Overrides:
getExampleInstructions
in class AbstractExample
- Returns:
- A string containing example instructions
create
public void create()
- Description copied from class:
AbstractExample
- Create the world geometry for each test.
Any custom initialization for a test should go here.
Called immediately after initialize(), which handles
generic test initialization and should usually not be overloaded.
- Specified by:
create
in class AbstractExample
makeCircle
public void makeCircle(float x,
float y,
float r)
makeBox
public void makeBox(float x,
float y,
float size)
postStep
public void postStep()
- Description copied from class:
AbstractExample
- Stub for overloading in examples - called after physics step.
- Overrides:
postStep
in class AbstractExample