java.lang.Objectgreenfoot.World
MainMenu
public class MainMenu
'MainMenu' is the view, and view controller for the initial menu in the game.
Constructor Summary | |
---|---|
MainMenu()
Constructs a MainMenu. |
Method Summary | |
---|---|
void |
act()
The main menu's behaviour. |
void |
hideOverlay()
Hides the overlay * |
void |
showOverlay()
Shows an overlay to fade out the screen * |
Methods inherited from class greenfoot.World |
---|
addObject, getBackground, getCellSize, getColorAt, getHeight, getObjects, getObjectsAt, getWidth, numberOfObjects, removeObject, removeObjects, repaint, setActOrder, setBackground, setBackground, setPaintOrder, started, stopped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MainMenu()
Method Detail |
---|
public void act()
act
in class greenfoot.World
public void hideOverlay()
public void showOverlay()