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.

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

    Synced with Foundry v12.331

    Returns boolean

    PF1 v10

  • Parameters

    • options: object

      Control options

    Returns void

  • Parameters

    • options: object

      Release options

    Returns void

  • Return coordinates of cells the token occupies.

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

    Parameters

    • Optionaloptions: {
          center: undefined | boolean;
      } = {}

      Additional options

      • center: undefined | boolean

        Return cell centers instead of origins

    Returns Point[]

    • Occupied cell coordinates.
  • Synced with Foundry v12

    Parameters

    • effect: string | object
    • options: {
          active: undefined | boolean;
          overlay: undefined | boolean;
      } = {}
      • active: undefined | boolean

        Force active state

      • overlay: undefined | boolean

        Overlay effect

    Returns boolean

    • was it applied or removed