Management

open class Management(val game: Game)

Management exists the entire time that the program is running, and is in charge of the boring nitty-gritty, such as loading Acts.

There is only ever 1 instance of this class. You may create a subclass and then set it on the "root" (Game) resource. Many / most games work fine using this default implementation.

Management should not be confused with Director. A Director is in charge of a single Act, and is no longer used when the Act finishes.

Constructors

Link copied to clipboard
constructor(game: Game)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var act: Act?
Link copied to clipboard
val actProperty: ReadOnlyPropertyWrapper<Act?, Property<Act?>>
Link copied to clipboard
Link copied to clipboard
val actResourceProperty: ReadOnlyPropertyWrapper<ActResource?, Property<ActResource?>>
Link copied to clipboard
val game: Game

Functions

Link copied to clipboard
open fun loadAct(path: String)
Link copied to clipboard
open fun positionSnapping(stage: Stage): Snapping
Link copied to clipboard
open fun postTick(seconds: Float)
Link copied to clipboard
open fun preTick(seconds: Float)
Link copied to clipboard
open fun reloadAct()
Link copied to clipboard
open fun terminate()