Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BattleMovr

Drives RPG-like battles between two teams of actors.

Hierarchy

  • BattleMovr

Implements

Index

Constructors

constructor

Properties

Private actionsOrderer

actionsOrderer: IActionsOrderer

Selector factories keyed by type name.

Private animations

animations: IAnimations

Animations for various battle activities.

Private Optional animator

animator: MainAnimator

Animator for the current battle, if one is happening.

Private Optional battleInfo

battleInfo: IBattleInfo

Battle info for the current battle, if one is happening.

Private selectorFactories

selectorFactories: ISelectorFactories

Selector factories keyed by type name.

Methods

Private createTeamFromInfo

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 over.

    Returns void

switchSelectedActor

  • switchSelectedActor(team: Team, newActor: IActor): void

Generated using TypeDoc