public class Menu
extends org.newdawn.slick.state.BasicGameState
Modifier and Type | Field and Description |
---|---|
AISetting |
aiSetting |
int |
deviceOne |
int |
deviceTwo |
int[] |
position |
Constructor and Description |
---|
Menu(int state,
AISetting aiSetting)
get AI setting address
|
Modifier and Type | Method and Description |
---|---|
void |
enter(org.newdawn.slick.GameContainer container,
org.newdawn.slick.state.StateBasedGame game)
if enters to state of menu, first cursor position is START
|
int |
getID() |
void |
init(org.newdawn.slick.GameContainer gc,
org.newdawn.slick.state.StateBasedGame sbg)
initialize information and get AI settings.
|
void |
render(org.newdawn.slick.GameContainer gc,
org.newdawn.slick.state.StateBasedGame sbg,
org.newdawn.slick.Graphics g)
draw all element of menu
|
void |
update(org.newdawn.slick.GameContainer gc,
org.newdawn.slick.state.StateBasedGame sbg,
int delta)
main method of this state.
|
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, leave, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setInput
public final int[] position
public int deviceOne
public int deviceTwo
public AISetting aiSetting
public Menu(int state, AISetting aiSetting)
state
- aiSetting
- public void init(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg) throws org.newdawn.slick.SlickException
gc
- sbg
- org.newdawn.slick.SlickException
public void enter(org.newdawn.slick.GameContainer container, org.newdawn.slick.state.StateBasedGame game)
enter
in interface org.newdawn.slick.state.GameState
enter
in class org.newdawn.slick.state.BasicGameState
container
- game
- public void render(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg, org.newdawn.slick.Graphics g) throws org.newdawn.slick.SlickException
gc
- sbg
- g
- org.newdawn.slick.SlickException
public void update(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg, int delta) throws org.newdawn.slick.SlickException
gc
- sbg
- delta
- org.newdawn.slick.SlickException
public int getID()
getID
in interface org.newdawn.slick.state.GameState
getID
in class org.newdawn.slick.state.BasicGameState