Class BossBeta

Define a boss entity.

Constructors

  • Beta

    Parameters

    • typeId: string

      Identifier of the type of the entity.

    • skills: BossSkill[]

      The boss skill(s)

    • Optionalmusic: BossMusicOptions

      The boss music.

    • OptionaldieEvent: ((arg: EntityDieAfterEvent) => void)

      Trigger event when the boss die.

        • (arg): void
        • Parameters

          • arg: EntityDieAfterEvent

          Returns void

    Returns Boss

Properties

dieEvent?: ((arg: EntityDieAfterEvent) => void)

Trigger event when the boss die.

The boss music.

skills: BossSkill[]

The boss skill(s)

typeId: string

Identifier of the type of the entity.

Methods

  • Beta

    Play the boss music to player(s).

    Parameters

    • player: Player | Player[]

    Returns void

  • Beta

    Unleash all the skills.

    Parameters

    • entity: Entity
    • boss: Entity

    Returns void