Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StateCondition

Defines a state condition as an extension of Condition

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new StateCondition

    Parameters

    • actionManager: ActionManager

      manager for the action the condition applies to

    • target: any

      of the condition

    • value: string

      to compare with target state

    Returns StateCondition

Properties

valueSearch playground for value

value: string

Value to compare with target state

Methods

isValidSearch playground for isValid

  • isValid(): boolean
  • Gets a boolean indicating if the current condition is met

    Returns boolean

    the validity of the state

serializeSearch playground for serialize

  • serialize(): any
  • Serialize the StateCondition into a JSON compatible object

    Returns any

    serialization object

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method