Base actor class with minimal functionality.

Provides only caching of .itemTypes and nothing else.

Hierarchy (view full)

Constructors

  • Parameters

    • data: undefined | ActorDataConstructorData

      Initial data provided to construct the Actor document

    • Optionalcontext: 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

    • Optionalcombat: 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.