Atavism Version 2018.1AGIS API

atavism.agis.core
Class AgisSkill

java.lang.Object
  extended by atavism.agis.core.AgisSkill
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgisCombatSkill

public class AgisSkill
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static AgisSkill NullSkill
           
 
Constructor Summary
AgisSkill()
           
AgisSkill(int id, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int getBaseExpThreshold()
          -Experience system component- Returns the default max experience required before increasing this skills level.
 int getDefaultAbility()
           
 int getExperiencePerUse()
          -Experience system component- Returns the amount of experience to be gained after a successful use of this skill.
 int getID()
           
 int getLevel(int xp)
          returns the level you have in this skill if you have the xp passed in
 int getLevelCostMultiplier()
           
 LevelingMap getLevelingMap()
           
 int getMaxRank()
          -Experience system component- Returns the max possible rank for this skill.
 java.lang.String getName()
           
 int getSkillCostMultiplier()
           
 int hashCode()
           
 void setBaseExpThreshold(int max)
          -Experience system component- Sets the default max experience required to increase the skills level.
 void setDefaultAbility(int ability)
           
 void setExperiencePerUse(int xp)
          -Experience system component- Sets the amount of experience that should be gained after a successful use of this skill.
 void setID(int id)
           
 void setLevelCostMultiplier(int c)
          each level costs 1000 xp
 void setLevelingMap(LevelingMap lm)
           
 void setMaxRank(int rank)
          -Experience system component- Sets the max possible rank for this skill.
 void setName(java.lang.String name)
           
 void setSkillCostMultiplier(int c)
           
 java.lang.String toString()
           
 int xpRequired(int level)
          returns the amount of total xp required to be at level 'skillLevel' for this skill
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NullSkill

public static AgisSkill NullSkill
Constructor Detail

AgisSkill

public AgisSkill()

AgisSkill

public AgisSkill(int id,
                 java.lang.String name)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setID

public void setID(int id)

getID

public int getID()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setSkillCostMultiplier

public void setSkillCostMultiplier(int c)

getSkillCostMultiplier

public int getSkillCostMultiplier()

setLevelCostMultiplier

public void setLevelCostMultiplier(int c)
each level costs 1000 xp


getLevelCostMultiplier

public int getLevelCostMultiplier()

xpRequired

public int xpRequired(int level)
returns the amount of total xp required to be at level 'skillLevel' for this skill


getLevel

public int getLevel(int xp)
returns the level you have in this skill if you have the xp passed in


setDefaultAbility

public void setDefaultAbility(int ability)

getDefaultAbility

public int getDefaultAbility()

getExperiencePerUse

public int getExperiencePerUse()
-Experience system component- Returns the amount of experience to be gained after a successful use of this skill.


setExperiencePerUse

public void setExperiencePerUse(int xp)
-Experience system component- Sets the amount of experience that should be gained after a successful use of this skill.

NOTE: Skill increases are meant to be minimal since there will generally be many abilities increasing the skill level.


setLevelingMap

public void setLevelingMap(LevelingMap lm)

getLevelingMap

public LevelingMap getLevelingMap()

getBaseExpThreshold

public int getBaseExpThreshold()
-Experience system component- Returns the default max experience required before increasing this skills level.


setBaseExpThreshold

public void setBaseExpThreshold(int max)
-Experience system component- Sets the default max experience required to increase the skills level.


getMaxRank

public int getMaxRank()
-Experience system component- Returns the max possible rank for this skill.


setMaxRank

public void setMaxRank(int rank)
-Experience system component- Sets the max possible rank for this skill.



Copyright © 2018 Dragonsan Studios Sp. z o.o.