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

Hierarchy (view full)

Constructors

Properties

accuracyLabel: Text
accuracyText: Text
active: boolean = false
cursor: number = 0
cursor2: number = 0
cursorObj: Image
fieldIndex: number = 0
mode: number
moveCategoryIcon: Sprite
movesContainer: Container
powerLabel: Text
powerText: Text
ppLabel: Text
ppText: Text
scene: default
typeIcon: Sprite

Methods

  • Gets multiplier text for a pokemon's move against a specific opponent Returns undefined if it's a status move

    Parameters

    Returns string

  • Returns a specific move's color based on its type effectiveness against opponents If there are multiple opponents, the highest effectiveness' color is returned

    Parameters

    Returns string

    A color or undefined if the default color should be used