Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Scene

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _assetHolders

_assetHolders: SceneAssetHolder[]

Private _loaded

_loaded: boolean

Private _loadingState

_loadingState: SceneLoadState

Private _prefetchRequested

_prefetchRequested: boolean

Private _ready

_ready: Trigger<Scene>

Private _sceneAssetHolder

_sceneAssetHolder: SceneAssetHolder

Private _storageLoader

_storageLoader: StorageLoader

Private _timer

_timer: TimerManager

assetLoadCompleted

assetLoadCompleted: Trigger<Asset>

assetLoadFailed

assetLoadFailed: Trigger<AssetLoadFailureInfo>

assetLoaded

assetLoaded: Trigger<Asset>

assets

assets: object

Type declaration

children

children: E[]

game

game: Game

loaded

loaded: Trigger<Scene>

local

message

name

name: string

operation

pointDownCapture

pointDownCapture: Trigger<PointDownEvent>

pointMoveCapture

pointMoveCapture: Trigger<PointMoveEvent>

pointUpCapture

pointUpCapture: Trigger<PointUpEvent>

state

state: SceneState

stateChanged

stateChanged: Trigger<SceneState>

storageValues

storageValues: StorageValueStore

tickGenerationMode

tickGenerationMode: TickGenerationMode

update

update: Trigger<void>

Methods

Private _activate

  • _activate(): void
  • Returns void

Private _deactivate

  • _deactivate(): void
  • Returns void

Private _fireLoaded

  • _fireLoaded(): void
  • Returns void

Private _fireReady

  • _fireReady(): void
  • Returns void

Private _load

  • _load(): void
  • Returns void

Private _needsLoading

  • _needsLoading(): boolean
  • Returns boolean

Private _notifySceneReady

  • _notifySceneReady(): void
  • Returns void

Private _onSceneAssetsLoad

  • _onSceneAssetsLoad(): void
  • Returns void

Private _onStorageLoadError

Private _onStorageLoaded

  • _onStorageLoaded(): void

append

  • append(e: E): void
  • Parameters

    • e: E

    Returns void

clearInterval

  • Parameters

    Returns void

clearTimeout

  • Parameters

    Returns void

createTimer

  • createTimer(interval: number): Timer
  • Parameters

    • interval: number

    Returns Timer

deleteTimer

  • deleteTimer(timer: Timer): void
  • Parameters

    Returns void

destroy

  • destroy(): void

destroyed

  • destroyed(): boolean

end

  • end(): void
  • Returns void

findPointSourceByPoint

gotoScene

  • gotoScene(next: Scene, toPush?: boolean): void
  • Parameters

    • next: Scene
    • Optional toPush: boolean

    Returns void

insertBefore

  • insertBefore(e: E, target: E): void
  • Parameters

    • e: E
    • target: E

    Returns void

isCurrentScene

  • isCurrentScene(): boolean
  • Returns boolean

modified

  • modified(isBubbling?: boolean): void
  • Parameters

    • Optional isBubbling: boolean

    Returns void

prefetch

  • prefetch(): void
  • Returns void

register

  • register(e: E): void
  • Parameters

    • e: E

    Returns void

remove

  • remove(e: E): void
  • Parameters

    • e: E

    Returns void

requestAssets

  • Parameters

    Returns void

serializeStorageValues

setInterval

  • setInterval(interval: number, owner: any, handler?: function): TimerIdentifier
  • Parameters

    • interval: number
    • owner: any
    • Optional handler: function
        • (): void
        • Returns void

    Returns TimerIdentifier

setTimeout

  • setTimeout(milliseconds: number, owner: any, handler?: function): TimerIdentifier
  • Parameters

    • milliseconds: number
    • owner: any
    • Optional handler: function
        • (): void
        • Returns void

    Returns TimerIdentifier

unregister

  • unregister(e: E): void
  • Parameters

    • e: E

    Returns void

Generated using TypeDoc