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
    cursor: number = 0
    mode: null | number

    Methods

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

      Returns void

    • Set the cursor to the specified position, if able and update the stats display.

      Parameters

      • newCursor: number

        The position to set the cursor to.

      Returns boolean

      Whether the cursor successfully moved to a new position

      If newCursor is not between 0 and maxCursorPos, or if it is the same as newCursor then no updates happen and false is returned.

      Otherwise, updates the up/down arrow visibility and calls updateStats