apes
Class MainMenuState

java.lang.Object
  extended by org.newdawn.slick.state.BasicGameState
      extended by apes.MainMenuState
All Implemented Interfaces:
org.newdawn.slick.ControlledInputReciever, org.newdawn.slick.ControllerListener, org.newdawn.slick.InputListener, org.newdawn.slick.KeyListener, org.newdawn.slick.MouseListener, org.newdawn.slick.state.GameState

public class MainMenuState
extends org.newdawn.slick.state.BasicGameState

the menu state of this game. It displays options such as start game, exit, as well as sound, video and input settings, which may be changed.


Constructor Summary
MainMenuState(int stateID)
           
 
Method Summary
 int getID()
           
 void init(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg)
           
 void render(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg, org.newdawn.slick.Graphics grphcs)
           
 void update(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg, int i)
           
 
Methods inherited from class org.newdawn.slick.state.BasicGameState
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, enter, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, leave, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainMenuState

public MainMenuState(int stateID)
Method Detail

getID

public int getID()
Specified by:
getID in interface org.newdawn.slick.state.GameState
Specified by:
getID in class org.newdawn.slick.state.BasicGameState

init

public void init(org.newdawn.slick.GameContainer gc,
                 org.newdawn.slick.state.StateBasedGame sbg)
          throws org.newdawn.slick.SlickException
Throws:
org.newdawn.slick.SlickException

render

public void render(org.newdawn.slick.GameContainer gc,
                   org.newdawn.slick.state.StateBasedGame sbg,
                   org.newdawn.slick.Graphics grphcs)
            throws org.newdawn.slick.SlickException
Throws:
org.newdawn.slick.SlickException

update

public void update(org.newdawn.slick.GameContainer gc,
                   org.newdawn.slick.state.StateBasedGame sbg,
                   int i)
            throws org.newdawn.slick.SlickException
Throws:
org.newdawn.slick.SlickException