Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IBattleMovr

Drives RPG-like battles between two teams of actors.

Hierarchy

  • IBattleMovr

Implemented by

Index

Methods

getBattleInfo

inBattle

  • inBattle(): boolean

startBattle

stopBattle

  • stopBattle(outcome: BattleOutcome, onComplete?: undefined | function): void
  • Stops the current battle.

    Parameters

    • outcome: BattleOutcome

      Why the battle stopped.

    • Optional onComplete: undefined | function

      Callback for when this is done.

    Returns void

switchSelectedActor

  • switchSelectedActor(team: Team, newActor: IActor): void
  • Switches the selected actor for a team.

    Parameters

    • team: Team

      Team switching actors.

    • newActor: IActor

      New selected actor for the team.

    Returns void

Generated using TypeDoc