SavedClassInformation changes to make skillTree class based. 2

This commit is contained in:
Ka0rX 2022-10-16 21:49:51 +02:00
parent b5c473c431
commit bde947a877

View File

@ -139,16 +139,37 @@ public class SavedClassInformation {
registerSkillLevel(skill.getHandler().getId(), level);
}
public int getSkillTreeReallocationPoints() {
return skillTreeReallocationPoints;
}
public int getSkillReallocationPoints() {
return skillReallocationPoints;
}
public void registerSkillLevel(String attribute, int level) {
skills.put(attribute, level);
}
public Set<String> getAttributeKeys() {
return attributes.keySet();
public Set<SkillTreeNode> getNodeKeys() {
return nodeLevels.keySet();
}
public int getAttributeLevel(PlayerAttribute attribute) {
return getAttributeLevel(attribute.getId());
public int getNodeLevel(SkillTreeNode node) {
return nodeLevels.get(node);
}
public Set<String> getSkillTreePointsKeys() {
return skillTreePoints.keySet();
}
public int getSkillTreePoints(String skillTreeId) {
return skillTreePoints.get(skillTreeId);
}
public Set<String> getAttributeKeys() {
return attributes.keySet();
}
public int getAttributeLevel(String id) {