Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CursorManager

Index

Constructors

constructor

Properties

Private active_tween

active_tween: Tween

Private cursor

cursor: Sprite

Private cursor_default_pos

cursor_default_pos: { x: number; y: number }

Type declaration

  • x: number
  • y: number

cursor_flipped

cursor_flipped: boolean

Private game

game: Game

Private group

group: Group

Static Readonly CursorTweens

CursorTweens: { POINT: string; WIGGLE: string } = ...

Type declaration

  • POINT: string
  • WIGGLE: string

Static Private Readonly DEFAULT_MOVE_TIME

DEFAULT_MOVE_TIME: number = ...

Static Private Readonly POINT

POINT: { 0: { X: number; Y: number }; 1: { X: number; Y: number }; 2: { X: number; Y: number }; DEFAULT_TIME: number; KEY: string } = ...

Type declaration

  • 0: { X: number; Y: number }
    • X: number
    • Y: number
  • 1: { X: number; Y: number }
    • X: number
    • Y: number
  • 2: { X: number; Y: number }
    • X: number
    • Y: number
  • DEFAULT_TIME: number
  • KEY: string

Static Private Readonly WIGGLE

WIGGLE: { DEFAULT_TIME: number; KEY: string; X1: number; X2: number; Y1: number; Y2: number } = ...

Type declaration

  • DEFAULT_TIME: number
  • KEY: string
  • X1: number
  • X2: number
  • Y1: number
  • Y2: number

Static Private Readonly X_SHIFT

X_SHIFT: 8 = 8

Methods

bring_to_top

  • bring_to_top(): void

clear_tweens

  • clear_tweens(): void

destroy

  • destroy(): void

flip_cursor

  • flip_cursor(): void

hide

  • hide(): void

init_tween

  • init_tween(config: TweenConfig, callback?: Function): void

move_to

  • move_to(pos: { x: number; y: number }, params?: { animate?: boolean; flip?: boolean; move_time?: number; tween_config?: TweenConfig }, on_complete?: Function): void
  • Parameters

    • pos: { x: number; y: number }
      • x: number
      • y: number
    • Optional params: { animate?: boolean; flip?: boolean; move_time?: number; tween_config?: TweenConfig }
      • Optional animate?: boolean
      • Optional flip?: boolean
      • Optional move_time?: number
      • Optional tween_config?: TweenConfig
    • Optional on_complete: Function

    Returns void

show

  • show(): void

Generated using TypeDoc