CPSingletonScope

org.cosplay.CPSingletonScope

The scope for the CPSingletonSprite.

Attributes

Source
CPSingletonSprite.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 GAME extends CPSingletonScope

Scope of the entire game. One event at the beginning of the game loop. The beginning of the game loop will be determined when CPBaseContext.getFrameCount is equal to zero.

Scope of the entire game. One event at the beginning of the game loop. The beginning of the game loop will be determined when CPBaseContext.getFrameCount is equal to zero.

Attributes

Source
CPSingletonSprite.scala
case case OBJECT extends CPSingletonScope

Scope of the individual singleton object. One event at the beginning of the singleton life cycle. The beginning of the scene object life cycle is determined when its callback is called for the first time.

Scope of the individual singleton object. One event at the beginning of the singleton life cycle. The beginning of the scene object life cycle is determined when its callback is called for the first time.

Attributes

Source
CPSingletonSprite.scala
case case SCENE extends CPSingletonScope

Scope of the scene. One event at the beginning of the scene life cycle. The beginning of the scene life cycle will be determined when CPBaseContext.getSceneFrameCount is equal to zero.

Scope of the scene. One event at the beginning of the scene life cycle. The beginning of the scene life cycle will be determined when CPBaseContext.getSceneFrameCount is equal to zero.

Attributes

Source
CPSingletonSprite.scala