Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISelector

Methods for a team to choose their next move.

Hierarchy

  • ISelector

Index

Methods

afterKnockout

  • afterKnockout(battleInfo: IBattleInfo, team: Team, onComplete: function): void
  • Reacts to an actor getting knocked out.

    Parameters

    • battleInfo: IBattleInfo

      State for an ongoing battle.

    • team: Team

      Which team is selecting an action.

    • onComplete: function
        • (): void
        • Returns void

    Returns void

nextAction

  • Determines the next action to take.

    Parameters

    • battleInfo: IBattleInfo

      State for an ongoing battle.

    • team: Team

      Which team is selecting an action.

    • onChoice: IOnChoice

      Callback for when an action is chosen.

    Returns void

Generated using TypeDoc