org.newdawn.slick.tests
Class TransitionTest

java.lang.Object
  extended by org.newdawn.slick.state.StateBasedGame
      extended by org.newdawn.slick.tests.TransitionTest
All Implemented Interfaces:
ControlledInputReciever, ControllerListener, Game, InputListener, KeyListener, MouseListener

public class TransitionTest
extends StateBasedGame

A test to view the different transitions that are currently implemented

Author:
kevin

Constructor Summary
TransitionTest()
          Test the transitions implemented
 
Method Summary
 Transition[] getNextTransitionPair()
          Get the next transition pair that we'lluse
 void initStatesList(GameContainer container)
          Initialise the list of states making up this game
static void main(java.lang.String[] argv)
          Entry point to our test
 
Methods inherited from class org.newdawn.slick.state.StateBasedGame
addState, closeRequested, controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, enterState, enterState, getContainer, getCurrentState, getCurrentStateID, getState, getStateCount, getTitle, init, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, postRenderState, postUpdateState, preRenderState, preUpdateState, render, setInput, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransitionTest

public TransitionTest()
Test the transitions implemented

Method Detail

initStatesList

public void initStatesList(GameContainer container)
                    throws SlickException
Description copied from class: StateBasedGame
Initialise the list of states making up this game

Specified by:
initStatesList in class StateBasedGame
Parameters:
container - The container holding the game
Throws:
SlickException - Indicates a failure to initialise the state based game resources
See Also:
StateBasedGame.initStatesList(org.newdawn.slick.GameContainer)

getNextTransitionPair

public Transition[] getNextTransitionPair()
Get the next transition pair that we'lluse

Returns:
The pair of transitions used to enter and leave the next state

main

public static void main(java.lang.String[] argv)
Entry point to our test

Parameters:
argv - The arguments passed to the test


Copyright © 2006 New Dawn Software. All Rights Reserved.