|
||||||||||
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.InputProviderTest
public class InputProviderTest
A test for abstract input via InputProvider
Field Summary |
---|
Fields inherited from class org.newdawn.slick.BasicGame |
---|
controllerButton, controllerDown, controllerLeft, controllerRight, controllerUp |
Constructor Summary | |
---|---|
InputProviderTest()
Create a new image rendering test |
Method Summary | |
---|---|
void |
controlPressed(Command command)
A control representing an control was pressed relating to a given command. |
void |
controlReleased(Command command)
A control representing an control was released relating to a given command. |
void |
init(GameContainer container)
Initialise the game. |
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 InputProviderTest()
Method Detail |
---|
public void init(GameContainer container) throws SlickException
Game
init
in interface Game
init
in class BasicGame
container
- The container holding the game
SlickException
- Throw to indicate an internal errorBasicGame.init(org.newdawn.slick.GameContainer)
public void render(GameContainer container, Graphics g)
Game
render
in interface Game
container
- The container holing this gameg
- The graphics context that can be used to render. However, normal rendering
routines can also be used.Game.render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
public void update(GameContainer container, int delta)
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 millisecondsBasicGame.update(org.newdawn.slick.GameContainer, int)
public void controlPressed(Command command)
InputProviderListener
controlPressed
in interface InputProviderListener
command
- The command that the control related toInputProviderListener.controlPressed(org.newdawn.slick.command.Command)
public void controlReleased(Command command)
InputProviderListener
controlReleased
in interface InputProviderListener
command
- The command that the control related toInputProviderListener.controlReleased(org.newdawn.slick.command.Command)
public static void main(java.lang.String[] argv)
argv
- The arguments to pass into the test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |