CombatTracker

CombatTracker

The combat and turn order tracker tab

Constructor

new CombatTracker()

Source:

Members

(static) defaultOptions

Source:

combat :Combat|null

Source:

Record the currently tracked Combat encounter

Type:

trackedResources :Object

Source:

Cache the values of additional tracked resources for each Token in Combat

Type:
  • Object

Methods

activateListeners()

Source:

createPopout()

Source:

(async) getData()

Source:

initialize(combat, render)

Source:

Initialize the combat tracker to display a specific combat encounter. If no encounter is provided, the tracker will be initialized with the first encounter in the viewed scene.

Parameters:
Name Type Description
combat Combat | null

The combat encounter to initialize

render boolean

Whether to re-render the sidebar after initialization

scrollToTurn()

Source:

Scroll the combat log container to ensure the current Combatant turn is centered vertically

updateTrackedResources() → {Object}

Source:

Update the value of tracked resources which are reported for each combatant

Returns:
Type
Object