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 voiddispose()static MenuControllergetController()static MenuViewgetView()voidhide()voidinit()Use init like the constructor.voidpause()voidrenderImpl(float dt)Main method which get's called every frame.voidresize(int width, int height)voidresume()voidshow()voidsupressWarning()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:AbstractMainMenuUse init like the constructor. Init gets called when every system is ready.- Specified by:
initin classAbstractMainMenu
-
renderImpl
public void renderImpl(float dt)
Description copied from class:WEScreenMain method which get's called every frame. Should be split up in data managment and data displaying.- Specified by:
renderImplin 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.
-
-