Class CustomToggle

    • Constructor Detail

      • CustomToggle

        public CustomToggle()
    • Method Detail

      • isOff

        public boolean isOff​(Ability ability)
        Specified by:
        isOff in interface AbilityToggle
        Parameters:
        ability - the target ability
        Returns:
        true if the ability has been turned off
      • toggle

        public CustomToggle toggle​(String abilityName,
                                   String targetName)
        Parameters:
        abilityName - the ability you want to change
        targetName - the final name for this ability
        Returns:
        the toggle instance
      • turnOff

        public CustomToggle turnOff​(String ability)
        Parameters:
        ability - the ability name you would like turned off
        Returns:
        the toggle instance
      • config

        public CustomToggle config​(Properties properties)
        Parameters:
        properties - the abilities toggle definition
        Returns:
        the toggle instance