Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class TokenPF

    Hierarchy

    • Token
      • TokenPF
    Index

    Constructors

    • Parameters

      • document: TokenDocument

        The Document instance which is represented by this object

      Returns TokenPF

    Accessors

    • get actorVision(): {
          lowLight: any;
          lowLightMultiplier: any;
          lowLightMultiplierBright: any;
      }

      Returns { lowLight: any; lowLightMultiplier: any; lowLightMultiplierBright: any }

    • get sizeErrorMargin(): number

      Returns error margin, in pixels, for measuring to and from token center.

      Defined as larger of half the token's width and height.

      Returns number

    Methods

    • Protected

      Draw a single resource bar, given provided data.

      Parameters

      • number: number

        The Bar number>

      • bar: Graphics

        The Bar container.

      • data: object

        Resource data for this bar.

      Returns void

    • Protected

      Parameters

      • data: object

        Resource data for this bar

      Returns null | number

      The number to boost the bar by, if any.

    • Protected

      Determines the length of the underline (bottom half-height bar overlay) on a token bar.

      Parameters

      • data: object

        Resource data for this bar

      Returns null | number

      The value of the bar underline, if any.

    • Override to support vision sharing and setting for minimum needed permission level.

      Synced with Foundry v13.340

      Returns boolean

      PF1 v10

    • Parameters

      • statusId: any
      • active: any

      Returns void

    • Parameters

      • options: object

        Control options

      Returns void

    • Parameters

      • options: object

        Release options

      Returns void

    • Return coordinates of cells the token occupies.

      Result is modified result of TokenDocument#getOccupiedGridSpaceOffsets().

      Parameters

      • Optionaloptions: { center?: boolean } = {}

        Additional options

        • Optionalcenter?: boolean

          Return cell centers instead of origins

      Returns Point[]

      • Occupied cell coordinates.