jeux.jeu
Class SpaceInvader

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

public class SpaceInvader
extends org.newdawn.slick.state.StateBasedGame

Author:
jub La classe space Invader permet en fonction du monde d'initialiser les niveaux.

Field Summary
private  World world
           
 
Constructor Summary
SpaceInvader(World world)
          Construit les niveaux, 0: le menu initial, 1: le premier niveau, n: le dernier niveau, n+1: le menu gagnant, n+2: le menu perdant.
 
Method Summary
 void initStatesList(org.newdawn.slick.GameContainer container)
           
 
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
 

Field Detail

world

private World world
Constructor Detail

SpaceInvader

public SpaceInvader(World world)
Construit les niveaux, 0: le menu initial, 1: le premier niveau, n: le dernier niveau, n+1: le menu gagnant, n+2: le menu perdant.

Parameters:
world - le monde utilisé par les niveaux
Method Detail

initStatesList

public void initStatesList(org.newdawn.slick.GameContainer container)
                    throws org.newdawn.slick.SlickException
Specified by:
initStatesList in class org.newdawn.slick.state.StateBasedGame
Throws:
org.newdawn.slick.SlickException