Class VariableFlagSet

    • Field Detail

      • m_VariableName

        protected VariableName m_VariableName
        the name of the flag variable.
    • Constructor Detail

      • VariableFlagSet

        public VariableFlagSet()
        Default constructor.
      • VariableFlagSet

        public VariableFlagSet​(VariableName variableName)
        Initializes with the specified variable name.
        Parameters:
        variableName - the variable name to use
      • VariableFlagSet

        public VariableFlagSet​(String variableName)
        Initializes with the specified variable name.
        Parameters:
        variableName - the variable name to use
    • Method Detail

      • setVariableName

        public void setVariableName​(String value)
        Sets the name of the variable to check.
        Parameters:
        value - the name
      • setVariableName

        public void setVariableName​(VariableName value)
        Sets the name of the variable flag to evaluate.
        Parameters:
        value - the name
      • getVariableName

        public VariableName getVariableName()
        Returns the name of the variable flag to evaluate.
        Returns:
        the name
      • variableNameTipText

        public String variableNameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doEvaluate

        protected boolean doEvaluate​(Actor owner,
                                     Token token)
        Performs the actual evaluation.
        Specified by:
        doEvaluate in class AbstractBooleanCondition
        Parameters:
        owner - the owning actor
        token - the current token passing through
        Returns:
        the result of the evaluation