Class AbilityCooldownException

All Implemented Interfaces:
Serializable

public class AbilityCooldownException extends AbilityActivationException
This exception is thrown when an ability is attempted to be activated while on cooldown.
See Also:
  • Constructor Details

    • AbilityCooldownException

      public AbilityCooldownException(long cooldownTimeEnds)
      Create an AbilityCooldownException.
      Parameters:
      cooldownTimeEnds - The game time at which the cooldown will end.
  • Method Details

    • getCooldownTimeLeft

      public long getCooldownTimeLeft()
      Get the game time at which the cooldown will end.
      Returns:
      The game time at which the cooldown will end.