Base actor class with minimal functionality.

Provides only caching of .itemTypes and nothing else.

Hierarchy

Constructors

  • Parameters

    • data: undefined | ActorDataConstructorData

      Initial data provided to construct the Actor document

    • Optional context: Context<TokenDocument>

      The document context, see foundry.abstract.Document

    Returns ActorBasePF

Properties

_initialized: undefined | boolean
_itemTypes: ItemTypesMap

Cached result of .itemTypes

_rollData: any

Accessors

Methods

  • Get related combatants.

    Parameters

    • Optional combat: Combat = game.combat

      Combat instance

    Returns Combatant[]

    Related combatants.

  • Get item by its identifier tag.

    Parameters

    • tag: string

      Desired tag.

    Returns undefined | Item

    • Matching item or undefined if no item is found.

Generated using TypeDoc