Hierarchy

  • Token
    • TokenPF

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;
    }

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

  • Synced with Foundry v11.315

    Returns boolean

    Since

    PF1 v10

  • Return coordinates of cells the token occupies.

    Bug: Does not work with hex grid. Bug: Does not account for rotation.

    Parameters

    • Optional options: {
          center: undefined | boolean;
      } = {}

      Additional options

      • center: undefined | boolean

        Return cell centers instead of origins

    Returns Point[]

    • Occupied cell coordinates.

Generated using TypeDoc