pokemon-rogue-battle
    Preparing search index...

    A basic abstract class to act as a holder and processor for UI elements.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    active: boolean = false
    awaitingActionInput: boolean
    cursor: number = 0
    message: Text
    mode: null | number
    onActionInput: null | Function
    pendingPrompt: boolean
    prompt: Sprite
    textCallbackTimer: null | TimerEvent
    textTimer: null | TimerEvent
    tutorialActive: boolean = false
    tutorialOverlay: Rectangle

    Methods

    • To be implemented by individual handlers when necessary to free memory Called when BattleScene is reset

      Returns void

    • Helper function that resets the given session slot to its default central position

      Parameters

      • slotIndex: number

      Returns void

    • Helper function that checks if the session slot involved holds data or not

      Parameters

      • hasData: boolean

        true if session slot contains data | 'false' if not

      Returns void

    • Move the cursor to a new position and update the view accordingly

      Parameters

      • cursor: number

        the new cursor position, between 0 and SLOTS_ON_SCREEN - 1

      • OptionalprevSlotIndex: number

        index of the previous session occupied by the cursor, between 0 and SESSION_SLOTS_COUNT - 1 - optional

      Returns boolean

      true if the cursor position has changed | false if it has not

    • Move the scrolling cursor to a new position and update the view accordingly

      Parameters

      • scrollCursor: number

        the new cursor position, between 0 and SESSION_SLOTS_COUNT - SLOTS_ON_SCREEN

      • OptionalprevSlotIndex: number

        index of the previous slot occupied by the cursor, between 0 and SESSION_SLOTS_COUNT-1 - optional

      Returns boolean

      true if the cursor position has changed | false if it has not

    • Parameters

      • text: string
      • Optional_name: string
      • Optionaldelay: null | number
      • Optionalcallback: null | Function
      • OptionalcallbackDelay: null | number
      • Optionalprompt: null | boolean
      • OptionalpromptDelay: null | number

      Returns void

    • Parameters

      • text: string
      • Optionaldelay: number
      • Optionalcallback: Function
      • OptionalcallbackDelay: number
      • Optionalprompt: boolean
      • OptionalpromptDelay: number

      Returns void