phina.js.d.ts
    Preparing search index...

    Interface ManagerScene

    interface ManagerScene {
        awake: boolean;
        children: phina.app.Element[];
        draggable: phina.accessory.Draggable;
        flickable: phina.accessory.Flickable;
        parent: phina.app.Element | null;
        physical: phina.accessory.Physical;
        tweener: phina.accessory.Tweener;
        addChild(child: phina.app.Element): phina.app.Element;
        addChildAt(child: phina.app.Element, index: number): phina.app.Element;
        addChildTo(parent: phina.app.Element): this;
        addEventListener(type: string, listener: Function): this;
        attach(accessory: phina.accessory.Accessory): this;
        clear(type: string): this;
        clearEventListener(type: string): this;
        detach(accessory: phina.accessory.Accessory): this;
        dispatchEvent(e: { type: string }): this;
        dispatchEventByType(type: string, param: object): this;
        exit(naxtLabel?: string, nextArguments?: object): this;
        fire(e: { type: string }): this;
        flare(type: string, param?: object): this;
        fromJson(json: object): this;
        getChildAt(index: number): phina.app.Element;
        getChildByName(name: string): phina.app.Element;
        getChildIndex(child: phina.app.Element): number;
        getCurrentSceneIndex(): number;
        getParent(): void | phina.app.Element;
        getRoot(): void | phina.app.Element;
        gotoNext(args: object): this;
        gotoScene(label: string | number, args: object): this;
        has(type: string): boolean;
        hasEventListener(type: string): boolean;
        indexToLabel(index: number): string;
        isAwake(): boolean;
        labelToIndex(label: string): number;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        onnext(e: any): void;
        remove(): void | phina.game.ManagerScene;
        removeChild(child: phina.app.Element): phina.app.Element;
        removeEventListener(type: string, listener: Function): this;
        replaceScene(label: string | number, args: object): this;
        setScene(scenes: ManagerSceneData[]): this;
        sleep(): this;
        toJson(): object;
        update?(app: phina.display.DomApp): void;
        wakeUp(): this;
    }

    Hierarchy (View Summary)

    Index

    Properties

    awake: boolean
    children: phina.app.Element[]
    parent: phina.app.Element | null

    Methods

    • Parameters

      • OptionalnaxtLabel: string
      • OptionalnextArguments: object

      Returns this

    • Parameters

      • e: { type: string }

      Returns this

    • Parameters

      • type: string
      • Optionalparam: object

      Returns this

    • Parameters

      • args: object

      Returns this

    • Parameters

      • label: string | number
      • args: object

      Returns this

    • Parameters

      • type: string

      Returns boolean

    • Parameters

      • index: number

      Returns string

    • Parameters

      • label: string

      Returns number

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • label: string | number
      • args: object

      Returns this