|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapes.Menu
public class Menu
This class represents a Menu. In this case, Menu means one container containing one or more MenuItems, which themselves can link to a different Menu or be responsible for a setting or something similar.
MenuItem
Constructor Summary | |
---|---|
Menu(float centerXPosition,
float topYPosition,
float yspaceBetweenItems)
constructs a new Menu. |
Method Summary | |
---|---|
void |
addItem(org.newdawn.slick.Image img,
MenuAction action)
add a new MenuItem to this menu. |
void |
render(org.newdawn.slick.Graphics grphcs)
draws this menu/its MenuItems to the screen. |
void |
update(org.newdawn.slick.GameContainer gc,
org.newdawn.slick.state.StateBasedGame sbg,
int i)
let this menu or its MenuItems react to userinput/changed conditions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Menu(float centerXPosition, float topYPosition, float yspaceBetweenItems)
centerXPosition
- topYPosition
- yspaceBetweenItems
- Method Detail |
---|
public void addItem(org.newdawn.slick.Image img, MenuAction action)
img
- the image to represent this itemaction
- the action to be executed by this item
org.newdawn.slick.SlickException
public void update(org.newdawn.slick.GameContainer gc, org.newdawn.slick.state.StateBasedGame sbg, int i) throws org.newdawn.slick.SlickException
gc
- sbg
- i
-
org.newdawn.slick.SlickException
public void render(org.newdawn.slick.Graphics grphcs)
grphcs
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |