Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/ControlTreeVisualization

Functions

generateControlTreeTextDiagram

  • generateControlTreeTextDiagram(control: IControl, turnNumber: number, indent?: undefined | number): string
  • Creates a text diagram of the Control tree

    Notes:

    1. The controls in the handling chain are highlighted with = H =
    2. The controls in the initiative chain are highlighted with = I =
    3. Controls that are in both chains are highlighted with = B =

    Parameters

    • control: IControl

      Control

    • turnNumber: number

      Turn number

    • Optional indent: undefined | number

      Indent

    Returns string