|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.BasicGame org.newdawn.slick.tests.DuplicateEmitterTest
public class DuplicateEmitterTest
A test for duplicating a ConfigurableEmitter several times
Field Summary |
---|
Fields inherited from class org.newdawn.slick.BasicGame |
---|
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp |
Constructor Summary | |
---|---|
DuplicateEmitterTest()
Create a new DuplicateEmitterTest |
Method Summary | |
---|---|
void |
init(GameContainer container)
load ressources (the particle system) and create our duplicate emitters and place them nicely on the screen |
void |
keyPressed(int key,
char c)
Notification that a key was pressed |
static void |
main(java.lang.String[] argv)
Entry point to our test |
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 DuplicateEmitterTest()
Method Detail |
---|
public void init(GameContainer container) throws SlickException
init
in interface Game
init
in class BasicGame
container
- The surrounding game container
SlickException
- Throw to indicate an internal errorGame.init(org.newdawn.slick.GameContainer)
public void update(GameContainer container, int delta) throws SlickException
Game
update
in interface Game
update
in class BasicGame
container
- The container holing this gamedelta
- The amount of time thats passed since last update in milliseconds
SlickException
- Throw to indicate an internal errorBasicGame.update(org.newdawn.slick.GameContainer, int)
public void render(GameContainer container, Graphics g) throws SlickException
Game
container
- 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(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
public void keyPressed(int key, char c)
KeyListener
keyPressed
in interface KeyListener
keyPressed
in class BasicGame
key
- The key code that was pressed (@see org.newdawn.slick.Input)c
- The character of the key that was pressedBasicGame.keyPressed(int, char)
public static void main(java.lang.String[] argv)
argv
- The arguments to pass into the test, not used here
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |