An event that deals with walking or climbing (depending on the rope angle) over a rope.

Hierarchy (view full)

Constructors

  • Parameters

    • game: Game
    • data: GoldenSun
    • x: number
    • y: number
    • activation_directions: any
    • initial_disabled_directions: any
    • activation_collision_layers: any
    • active_storage_key: any
    • affected_by_reveal: any
    • key_name: string
    • origin_interactable_object: InteractableObjects
    • walk_over_rope: boolean
    • dock_exit_collision_layer: number
    • rope_collision_layer: number

    Returns RopeEvent

Properties

_activation_collision_layers: Set<number>
_activation_directions: Set<directions>
_affected_by_reveal: Set<directions>
_allow_active_in_diagonal: boolean
_dock_exit_collision_layer: number

Collision layer that the char will be on dock exit.

_id: number
_initial_activation_directions: Set<directions>
_initial_disabled_directions: Set<directions>
_key_name: string
_location_key: number
_origin_interactable_object: RopeDock

The interactable object that originated this event. Overriding with appropriate inheritance.

_rope_collision_layer: number

Collision layer that the char will be when walking over the rope.

_starting_rope_dock: RopeDock

The staring rope dock.

_walk_over_rope: boolean

Whether the char will be walking over the rope.

_x: number
_y: number
collision_layer_shift_from_source: number

The collision layer shift value from origin Inter. Obj. base collision layer that will be summed up to it which will form the activation collision layer of this event.

data: GoldenSun
game: Game
in_map: boolean

Whether this event is in the map.

_events: {
    [id: number]: TileEvent;
}

Type declaration

id_incrementer: number
labeled_events: {
    [key_name: number]: TileEvent;
}

Type declaration

Accessors

  • get activation_collision_layers(): Set<number>
  • The set of collision layers that this event can be fired.

    Returns Set<number>

  • get allow_active_in_diagonal(): boolean
  • When activating this event in diagonal, and if this var is not true, the diagonal direction whether the hero is trying to activate this event won't be splitted.

    Returns boolean

  • get origin_interactable_object(): RopeDock
  • The interactable object that created this event (in the case of it has been created from it).

    Returns RopeDock

Methods

  • Activates this event in all initial directions.

    Parameters

    • include_affected_by_reveal: boolean = false

      if true, it will also make this event sensible to reveal.

    Returns void

  • Tests whether a given direction is available to active this event. If no directions given, tests if at least one direction is active.

    Parameters

    • Optional direction: directions

      the direction to test if it's active.

    Returns boolean

    Returns whether it's active or not.

  • Updates the position of this event.

    Parameters

    • Optional x_tile: number

      the new x tile position.

    • Optional y_tile: number

      the new y tile position

    • change_in_map: boolean = false

      folow the position change up to map events list.

    Returns void