Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new MainCharsJoinSplitEvent(game: any, data: any, active: any, key_name: any, keep_reveal: any, keep_custom_psynergy: any, mode: any, main_char_key_name: any, destination_incremental: any, destination_type: any, destination: any, wait_after: any, final_direction: any, final_hero_direction: any, initial_hero_direction: any, finish_events: any, keep_npc_collision_disable: any, dash: any): MainCharsJoinSplitEvent
  • Parameters

    • game: any
    • data: any
    • active: any
    • key_name: any
    • keep_reveal: any
    • keep_custom_psynergy: any
    • mode: any
    • main_char_key_name: any
    • destination_incremental: any
    • destination_type: any
    • destination: any
    • wait_after: any
    • final_direction: any
    • final_hero_direction: any
    • initial_hero_direction: any
    • finish_events: any
    • keep_npc_collision_disable: any
    • dash: any

    Returns MainCharsJoinSplitEvent

Properties

dash: boolean
data: GoldenSun
destination: { x: number; y: number }

Type declaration

  • x: number
  • y: number
destination_incremental: boolean
destination_type: "px" | "tile"
final_direction: directions
final_hero_direction: directions
finish_events: GameEvent[]
game: Game
initial_hero_direction: directions
keep_npc_collision_disable: boolean
main_char_key_name: string
main_char_label: string
mode: "split" | "join"
wait_after: number
events: {}

The events object where the keys are the ids.

Type declaration

id_incrementer: number

The GameEvents id incrementer.

labeled_events: {}

The events object where the keys are the events labels.

Type declaration

Accessors

  • get active(): boolean
  • get id(): number
  • get keep_reveal(): boolean
  • get key_name(): string
  • get origin_npc(): NPC

Methods

  • _destroy(): void
  • _fire(): Promise<void>
  • destroy(): void
  • This function is the one that should be called to destroy an event. It should never be overriden. Call this function to destroy this event. This can be called whenever an associated entity is destroyed, like maps, NPCs etc.

    Returns void

  • finish(): Promise<void>
  • fire(origin_npc?: NPC): void
  • This function is the one that should be called to start a event. It should never be overriden. Always before this function is called, it's checked whether Reveal psynergy is being casted, if yes, it's stopped before this event start.

    Parameters

    • Optional origin_npc: NPC

      the NPC that originated this game event.

    Returns void

    if the child class has an async fire function, returns its Promise.

  • join(): Promise<void>
  • on_position_reach(char: NPC): Promise<void>
  • set_event_activation(activate: boolean): void
  • split(): Promise<void>
  • get_char(data: GoldenSun, options: { is_npc?: boolean; npc_index?: number; npc_label?: string }): Hero | NPC
  • A helper function that defines the ControllableChar based on inputs. The controllable char can be a hero or a npc.

    Parameters

    • data: GoldenSun

      The GoldenSun instance.

    • options: { is_npc?: boolean; npc_index?: number; npc_label?: string }

      Some options to help defining the char.

      • Optional is_npc?: boolean

        Whether it's a npc or not.

      • Optional npc_index?: number

        The npc index number.

      • Optional npc_label?: string

        The npc unique label identifier.

    Returns Hero | NPC

    the defined char.

  • get_labeled_event(key_name: string): GameEvent
  • reset(): void

Generated using TypeDoc