|
|||||||||
| Atavism Version 2018.1 | AGIS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatavism.agis.objects.SkillInfo
public class SkillInfo
The SkillInfo class stores information about the skills a player has and provides functions for learning skills, along with increasing and decreasing skill levels.
| Field Summary | |
|---|---|
protected int |
category
|
protected int |
pointsSpent
|
protected int |
skillPoints
|
protected java.util.HashMap<java.lang.Integer,SkillData> |
skills
|
| Constructor Summary | |
|---|---|
SkillInfo()
|
|
SkillInfo(int category)
|
|
| Method Summary | |
|---|---|
SkillData |
addSkill(SkillTemplate tmpl)
Adds a |
static void |
applyNewAbilities(CombatInfo info,
SkillTemplate tmpl,
int skillValue)
|
static void |
applyPassiveEffects(AgisAbility ability,
CombatInfo player)
Applies the effects from the given ability to the player. |
static void |
applyStatModifications(CombatInfo info,
SkillTemplate tmpl,
int skillValue)
Applies stat modifications to the players CombatInfo based on their skill level for the specified skill template. |
static void |
decreaseSkill(SkillInfo skillInfo,
int skillType,
int aspect,
CombatInfo info)
Decrease the level of the given skill. |
int |
getCategory()
|
int |
getPointsSpent()
|
int |
getSkillPoints()
|
java.util.HashMap<java.lang.Integer,SkillData> |
getSkills()
|
static java.lang.String |
getStatSkillKey(SkillTemplate tmpl,
int statNum)
|
static void |
increaseSkill(SkillInfo skillInfo,
int skillType,
int aspect,
CombatInfo info,
boolean increaseCurrent)
Increase the skill level of the given skill. |
static void |
increaseSkillCurrent(SkillInfo skillInfo,
int skillType,
int alterValue,
CombatInfo info)
Not used. |
static void |
learnAbility(CombatInfo info,
int abilityID)
Adds the given ability to the players list of abilities they know. |
static void |
learnSkill(SkillInfo skillInfo,
int skillType,
int aspect,
CombatInfo info)
|
static void |
levelChanged(SkillInfo skillInfo,
CombatInfo info,
int newLevel)
Gives players skill points for having leveled up. |
static void |
newSkillGained(CombatInfo info,
int skillType)
Helper function. |
static void |
removePassiveEffect(AgisAbility ability,
CombatInfo player)
Removed the effects from the given ability from the player. |
static void |
resetSkills(SkillInfo skillInfo,
CombatInfo info)
Clear all skills and give the player back their skill points. |
void |
setCategory(int category)
|
void |
setPointsSpent(int pointsSpent)
|
void |
setSkillPoints(int skillPoints)
|
void |
setSkills(java.util.HashMap<java.lang.Integer,SkillData> skills)
|
static void |
skillLost(CombatInfo info,
int skillType)
Helper function. |
static void |
skillPointGain(CombatInfo info,
int skillType,
int skillValue)
Helper function. |
static void |
skillPointLoss(CombatInfo info,
int skillType,
int skillValue)
Helper function. |
static void |
skillUpAttempt(SkillInfo skillInfo,
int skillType,
CombatInfo info)
Attempt to increase the players level and max level of the given skill. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int category
protected int skillPoints
protected int pointsSpent
protected java.util.HashMap<java.lang.Integer,SkillData> skills
| Constructor Detail |
|---|
public SkillInfo()
public SkillInfo(int category)
| Method Detail |
|---|
public SkillData addSkill(SkillTemplate tmpl)
tmpl -
public int getCategory()
public void setCategory(int category)
public int getSkillPoints()
public void setSkillPoints(int skillPoints)
public int getPointsSpent()
public void setPointsSpent(int pointsSpent)
public java.util.HashMap<java.lang.Integer,SkillData> getSkills()
public void setSkills(java.util.HashMap<java.lang.Integer,SkillData> skills)
public static void learnSkill(SkillInfo skillInfo,
int skillType,
int aspect,
CombatInfo info)
public static void increaseSkill(SkillInfo skillInfo,
int skillType,
int aspect,
CombatInfo info,
boolean increaseCurrent)
skillInfo - skillType - aspect - info -
public static void decreaseSkill(SkillInfo skillInfo,
int skillType,
int aspect,
CombatInfo info)
skillInfo - skillType - aspect - info -
public static void skillUpAttempt(SkillInfo skillInfo,
int skillType,
CombatInfo info)
skillInfo - skillType - info -
public static void resetSkills(SkillInfo skillInfo,
CombatInfo info)
skillInfo - info -
public static void levelChanged(SkillInfo skillInfo,
CombatInfo info,
int newLevel)
skillInfo - info - newLevel -
public static void increaseSkillCurrent(SkillInfo skillInfo,
int skillType,
int alterValue,
CombatInfo info)
skillInfo - skillType - alterValue - info -
public static void newSkillGained(CombatInfo info,
int skillType)
oid - skillType -
public static void skillLost(CombatInfo info,
int skillType)
oid - skillType -
public static void skillPointGain(CombatInfo info,
int skillType,
int skillValue)
oid: - The oid of the player who increased their skill valueskillType: - The type of skill that was increasedskillValue: - The new value of the skill
public static void skillPointLoss(CombatInfo info,
int skillType,
int skillValue)
oid: - The oid of the player who decreased their skill valueskillType: - The type of skill that was decreasedskillValue: - The new value of the skill
public static void learnAbility(CombatInfo info,
int abilityID)
info - abilityID -
public static void applyPassiveEffects(AgisAbility ability,
CombatInfo player)
ability - player -
public static void removePassiveEffect(AgisAbility ability,
CombatInfo player)
ability - player -
public static void applyStatModifications(CombatInfo info,
SkillTemplate tmpl,
int skillValue)
info - tmpl -
public static void applyNewAbilities(CombatInfo info,
SkillTemplate tmpl,
int skillValue)
public static java.lang.String getStatSkillKey(SkillTemplate tmpl,
int statNum)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||