|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.BasicGame
org.newdawn.slick.tests.GeomUtilTest
public class GeomUtilTest
A test to try shape cutting
| Field Summary |
|---|
| Fields inherited from class org.newdawn.slick.BasicGame |
|---|
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp |
| Constructor Summary | |
|---|---|
GeomUtilTest()
Create a simple test |
|
| Method Summary | |
|---|---|
void |
init()
Perform the cut |
void |
init(GameContainer container)
Initialise the game. |
static void |
main(java.lang.String[] argv)
Entry point to our test |
void |
mouseWheelMoved(int change)
Notification that the mouse wheel position was updated |
void |
pointExcluded(float x,
float y)
Notification that a point was excluded from geometry |
void |
pointIntersected(float x,
float y)
Notification that a point was intersected between two geometries |
void |
pointUsed(float x,
float y)
Notification that a point was used to build a new geometry |
void |
render(GameContainer container,
Graphics g)
Render the game's screen here. |
void |
update(GameContainer container,
int delta)
Update the game logic here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeomUtilTest()
| Method Detail |
|---|
public void init()
public void init(GameContainer container)
throws SlickException
Game
init in interface Gameinit in class BasicGamecontainer - The container holding the game
SlickException - Throw to indicate an internal errorBasicGame.init(GameContainer)
public void update(GameContainer container,
int delta)
throws SlickException
Game
update in interface Gameupdate in class BasicGamecontainer - The container holing this gamedelta - The amount of time thats passed since last update in milliseconds
SlickException - Throw to indicate an internal errorBasicGame.update(GameContainer, int)
public void render(GameContainer container,
Graphics g)
throws SlickException
Game
render in interface Gamecontainer - The container holing this gameg - The graphics context that can be used to render. However, normal rendering
routines can also be used.
SlickException - Throw to indicate a internal errorGame.render(GameContainer, Graphics)public static void main(java.lang.String[] argv)
argv - The arguments passed to the test
public void pointExcluded(float x,
float y)
GeomUtilListener
pointExcluded in interface GeomUtilListenerx - The x coordinate of the pointy - The y coordinate of the point
public void pointIntersected(float x,
float y)
GeomUtilListener
pointIntersected in interface GeomUtilListenerx - The x coordinate of the pointy - The y coordinate of the point
public void pointUsed(float x,
float y)
GeomUtilListener
pointUsed in interface GeomUtilListenerx - The x coordinate of the pointy - The y coordinate of the pointpublic void mouseWheelMoved(int change)
MouseListener
mouseWheelMoved in interface MouseListenermouseWheelMoved in class BasicGamechange - The amount of the wheel has movedMouseListener.mouseWheelMoved(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||