Class HasStorageValue

    • Field Detail

      • m_StorageName

        protected StorageName m_StorageName
        the name of the lookup table in the internal storage.
    • Constructor Detail

      • HasStorageValue

        public HasStorageValue()
        Default constructor.
      • HasStorageValue

        public HasStorageValue​(StorageName storageName)
        Initializes with the specified storage name.
        Parameters:
        storageName - the name to use
      • HasStorageValue

        public HasStorageValue​(String storageName)
        Initializes with the specified storage name.
        Parameters:
        storageName - the name to use
    • Method Detail

      • setStorageName

        public void setStorageName​(String value)
        Sets the name of the stored value.
        Parameters:
        value - the name
      • setStorageName

        public void setStorageName​(StorageName value)
        Sets the name of the storage value to check.
        Parameters:
        value - the name
      • getStorageName

        public StorageName getStorageName()
        Returns the name of the storage value to check.
        Returns:
        the name
      • storageNameTipText

        public String storageNameTipText()
        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