Class BasicMainMenu
- java.lang.Object
-
- com.bombinggames.wurfelengine.core.WEScreen
-
- com.bombinggames.wurfelengine.core.AbstractMainMenu
-
- com.bombinggames.wurfelengine.extension.basicmainmenu.BasicMainMenu
-
public class BasicMainMenu extends AbstractMainMenu
This class provides a simple basic main menu if you don't want to set up your own and just want to test your game controllers.
-
-
Constructor Summary
Constructors Constructor Description BasicMainMenu()
BasicMainMenu(BasicMenuItem[] menuItems)
Use this constructor to pass your controller and views in order of the main menu
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
static MenuController
getController()
static MenuView
getView()
void
hide()
void
init()
Use init like the constructor.void
pause()
void
renderImpl(float dt)
Main method which get's called every frame.void
resize(int width, int height)
void
resume()
void
show()
void
supressWarning()
If you want to hide the warning message call this method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class com.bombinggames.wurfelengine.core.WEScreen
addButton, enterSelection, getButtonAmount, getSelection, render, select
-
-
-
-
Constructor Detail
-
BasicMainMenu
public BasicMainMenu(BasicMenuItem[] menuItems)
Use this constructor to pass your controller and views in order of the main menu- Parameters:
menuItems
-
-
BasicMainMenu
public BasicMainMenu()
-
-
Method Detail
-
init
public void init()
Description copied from class:AbstractMainMenu
Use init like the constructor. Init gets called when every system is ready.- Specified by:
init
in classAbstractMainMenu
-
renderImpl
public void renderImpl(float dt)
Description copied from class:WEScreen
Main method which get's called every frame. Should be split up in data managment and data displaying.- Specified by:
renderImpl
in classWEScreen
- Parameters:
dt
- time in ms
-
resize
public void resize(int width, int height)
-
show
public void show()
-
hide
public void hide()
-
pause
public void pause()
-
resume
public void resume()
-
dispose
public void dispose()
-
getController
public static MenuController getController()
- Returns:
-
getView
public static MenuView getView()
- Returns:
-
supressWarning
public void supressWarning()
If you want to hide the warning message call this method.
-
-