Package studio.magemonkey.fabled.tree
Class SkillTree
java.lang.Object
studio.magemonkey.fabled.tree.SkillTree
- Direct Known Subclasses:
InventoryTree
Represents a skill tree that contains an arrangement of a class's skills
for a player to browse and level up or refund skills.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
arrange()
Arranges the skill treeprotected abstract void
Arranges the skill treeboolean
Checks whether the player can be shown the skillabstract boolean
Checks if the class has the skill registered
-
Field Details
-
api
-
tree
-
-
Constructor Details
-
SkillTree
Constructor- Parameters:
api
- api reference
-
-
Method Details
-
canShow
Checks whether the player can be shown the skill- Parameters:
player
- player to check forskill
- skill to check for permissions- Returns:
- true if skill can be shown, false otherwise
-
arrange
Arranges the skill tree- Throws:
SkillTreeException
-
arrange
Arranges the skill tree- Parameters:
skills
- skills to arrange- Throws:
SkillTreeException
-
hasSkill
Checks if the class has the skill registered- Parameters:
skill
- skill to check- Returns:
- true if registered, false otherwise
-