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

    Class AttackDialog

    Hierarchy

    • Application
      • AttackDialog
    Index

    Constructors

    Properties

    actionUse: ActionUse
    ammoUsage: undefined | Record<string, AttackAmmoUsage>
    attacks: ActionUseAttack[]
    attributes: Record<string, string>
    base: { cl: any; sl: any }
    conditionals: {}
    flags: Record<string, boolean>
    object: ItemAction
    resolve: null | ((value: null | object | PromiseLike<null | object>) => void)
    rollData: object
    useOptions: UseOptions

    Accessors

    • get title(): string

      An Application window should define its own title definition logic which may be dynamic depending on its data

      Returns string

    • get defaultOptions(): {
          classes: string[];
          closeOnSubmit: boolean;
          height: string;
          sheetConfig: boolean;
          submitOnChange: boolean;
          submitOnClose: boolean;
          template: string;
          width: number;
      }

      Assign the default options configuration which is used by this Application class. The options and values defined in this object are merged with any provided option values which are passed to the constructor upon initialization. Application subclasses may include additional options which are specific to their usage.

      Returns {
          classes: string[];
          closeOnSubmit: boolean;
          height: string;
          sheetConfig: boolean;
          submitOnChange: boolean;
          submitOnClose: boolean;
          template: string;
          width: number;
      }

    Methods

    • After rendering, activate event listeners which provide interactivity for the Application. This is where user-defined Application subclasses should attach their event-handling logic.

      Parameters

      • html: any

      Returns void

    • Close the application and un-register references to it within UI mappings This function returns a Promise which resolves once the window closing animation concludes

      Parameters

      • options: {} = {}

        Options which affect how the Application is closed (default: {})

      Returns Promise<void>

      A Promise which resolves once the application is closed

    • An application should define the data object used to render its template. This function may either return an Object directly, or a Promise which resolves to an Object If undefined, the default implementation will return an empty object allowing only for rendering of static HTML

      Returns {
          action: ItemAction;
          ammo: undefined | Record<string, AttackAmmoUsage>;
          attacks: ActionUseAttack[];
          attributes: Record<string, string>;
          conditionals: {};
          config: config;
          data: object;
          flags: Record<string, boolean>;
          hasAttack: boolean;
          hasDamage: boolean;
          hasDamageAbility: boolean;
          hasTemplate: boolean;
          isAttack: boolean;
          isFeat: boolean;
          isHealing: boolean;
          isMelee: boolean;
          isMeleeWeaponAttackAction: boolean;
          isNaturalAttack: boolean;
          isRanged: boolean;
          isRangedWeaponAttackAction: boolean;
          isSpell: boolean;
          isThrown: boolean;
          isWeapon: boolean;
          isWeaponAttack: boolean;
          item: undefined | ItemPF;
          rollMode: SettingInitializedType<"core", "rollMode">;
          rollModes: InterfaceToObject<RollModes>;
          usesAmmo: boolean;
      }