Interface SkillAction

    • Method Detail

      • getName

        String getName​(ItemManager itemManager)
        Gets the name of this skill action, usually the item or object created, or the spell cast. This name may be fetched via ItemComposition.getMembersName() from some defined item ID or explicitly defined.
        Parameters:
        itemManager - An item manager instance.
        Returns:
        The name of this skill action.
      • getLevel

        int getLevel()
        Gets the level required to perform this skill action.
        Returns:
        The level required to perform this skill action.
      • getXp

        float getXp()
        Gets the amount of xp granted for performing this skill action.
        Returns:
        The amount of xp granted for performing this skill action.
      • getIcon

        default int getIcon()
        Gets the item icon ID for this skill action, if applicable.

        Note: Either this method or getSprite() will always return -1, and the other will return some value 0 or greater.

        Returns:
        The item icon ID of this skill action, or -1 if its icon should be represented using a sprite.
        See Also:
        ItemID, getSprite()
      • getSprite

        default int getSprite()
        Gets the sprite ID for this skill action, if applicable.

        Note: Either this method or getIcon() will always return -1, and the other will return some value 0 or greater.

        Returns:
        The sprite ID of this skill action, or -1 if its icon should be represented using an item icon.
        See Also:
        SpriteID, getIcon()
      • isBonusApplicable

        default boolean isBonusApplicable​(SkillBonus bonus)
        Returns true if this skill action is affected by the specified skill bonus, false otherwise.
        Returns:
        true if this skill action is affected by the specified skill bonus, false otherwise.
      • isMembers

        boolean isMembers​(ItemManager itemManager)
      • getExcludedSkillBonuses

        default Set<? extends SkillBonus> getExcludedSkillBonuses()