BaseMenu

abstract class BaseMenu(actionState: Int) : Menu

Constructors

Link copied to clipboard
constructor(actionState: Int)

Types

Link copied to clipboard
abstract class AbstractMenuItem(val x: Int, val y: Int, val menu: BaseMenu, selectedTextures: ArrayDeque<Texture>) : MenuItem
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
lateinit var curLevel: MenuItem

Current item of the menu.

Link copied to clipboard
lateinit var rootItem: MenuItem

The root item of the menu.

Link copied to clipboard
open override val uuid: UUID

The universally unique identifier(UUID) of this object

Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Functions

Link copied to clipboard
override fun collide(o: Object): Boolean

Test if the object collide with another object o.

Link copied to clipboard
open override fun font(): Font

The font used for paint information.

Link copied to clipboard
open fun initKeyEvents()
Link copied to clipboard
open override fun paint(g: Graphics2D)

Render the object.

Link copied to clipboard
abstract fun paintBackground(r: Graphics2D)

Paint the background of the menu.

Link copied to clipboard
fun restore()
Link copied to clipboard
fun setRoot(root: MenuItem)

Set the root item, and set the current item to the new root.

Link copied to clipboard
override fun shouldAction(): Boolean

Should the menu actions, used to control when the menu should be updated.

Link copied to clipboard
open override fun shouldRender(): Boolean

Returns should the menu be rendered.

Link copied to clipboard
open override fun update(): Boolean

Check the state of the object, and if this need to be removed, true should be returned.

Link copied to clipboard
open override fun updateInfo()

How the GameLoop update the information of the UIObject.