State

org.cosplay.CPLifecycle$.State
enum State

Lifecycle states.

Attributes

Source
CPLifecycle.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case case LF_ACTIVE extends State

Object has been activated. Called zero or more times. Scene and scene objects activated when the scene becomes an active (playing) scene.

Object has been activated. Called zero or more times. Scene and scene objects activated when the scene becomes an active (playing) scene.

Attributes

Source
CPLifecycle.scala
case case LF_INACTIVE extends State

Object has been deactivated. Called zero or more times. Scene and scene objects deactivated when the game engine is switched to another scene.

Object has been deactivated. Called zero or more times. Scene and scene objects deactivated when the game engine is switched to another scene.

Attributes

Source
CPLifecycle.scala
case case LF_INIT extends State

Initial state of un-started object.

Initial state of un-started object.

Attributes

Source
CPLifecycle.scala
case case LF_STARTED extends State

Object has been started. Called at most once. Objects are started only once when they are first encountered by the game engine.

Object has been started. Called at most once. Objects are started only once when they are first encountered by the game engine.

Attributes

Source
CPLifecycle.scala
case case LF_STOPPED extends State

Object has been stopped. Called at most once. Scenes and scene objects are stopped when either game is stopped or an object is removed.

Object has been stopped. Called at most once. Scenes and scene objects are stopped when either game is stopped or an object is removed.

Attributes

Source
CPLifecycle.scala