Atavism Version 2018.1AGIS API

atavism.agis.objects
Class ProfessionObject

java.lang.Object
  extended by atavism.agis.objects.ProfessionObject

public class ProfessionObject
extends java.lang.Object


Constructor Summary
ProfessionObject(java.lang.String name)
           
 
Method Summary
 void addAbility(int abilityID)
           
 void addAbility(int abilityID, boolean isdefault)
          Adds an ability to this profession's list of abilitlies as well as add to default if needed.
 void addAbilityMap(java.util.HashMap<java.lang.Integer,AgisAbility> abilityMap)
          This method allows you to pass an already build ability map for this profession.
 void addAbilityMaps(java.util.HashMap<java.lang.Integer,AgisAbility> abilityMap, java.util.HashMap<java.lang.Integer,AgisAbility> defaultMap)
          This method provides a shortcut for passing ability map as well as default ability map to the profession.
 void addBaseStat(java.lang.String statname)
           
 void addDefaultAbilityMap(java.util.HashMap<java.lang.Integer,AgisAbility> defaultmap)
          This method provides the ability to pass an already built default abilities map for this profession.
 void addDefaultSkillMap(java.util.HashMap<java.lang.Integer,AgisSkill> defaultSkillMap)
          This method allows passing an already built default skill map for the profession.
 void addSkill(int skillID)
           
 void addSkill(int skillID, boolean isdefault)
          Adds a skill to this profession, and places it into default if necessary.
 void addSkillMap(java.util.HashMap<java.lang.Integer,AgisSkill> skillMap)
          This method allows passing an already built skillmap to the profession.
 void addSkillMaps(java.util.HashMap<java.lang.Integer,AgisSkill> skillMap, java.util.HashMap<java.lang.Integer,AgisSkill> defaultSkillMap)
          This method allows passing already built skill maps in for the profession.
 void applyLevelingMap(LevelingMap lm)
           
 void applyStatsLevelingMap(java.lang.String statname, LevelingMap lm)
           
 AgisAbility getAbility(java.lang.Integer abilityID)
          Retrieves ability.
 java.util.HashMap<java.lang.Integer,AgisAbility> getAbilityMap()
          Retrieves ability map.
 java.util.HashMap<java.lang.Integer,AgisAbility> getDefaultAbilityMap()
          Retrieves the default ability map.
 java.util.HashMap<java.lang.Integer,AgisSkill> getDefaultSkillMap()
          Retrieves the default skill map.
 LevelingMap getLevelingMap()
           
 java.lang.String getName()
          Returns the profession name.
 AgisSkill getSkill(java.lang.Integer skillID)
          Retrieves the skill.
 java.util.HashMap<java.lang.Integer,AgisSkill> getSkillMap()
          Retrieves entire skill map.
 LevelingMap getStatsLevelingMap(java.lang.String statname)
           
 boolean hasAbility(java.lang.Integer abilityID)
          Method for finding out if ability is available.
 boolean hasSkill(java.lang.Integer skillID)
          Returns whether this profession has this skill in it's list.
 boolean hasStatLevelModification(java.lang.String statname, int lvl)
           
 boolean isBaseStat(java.lang.String statname)
           
 boolean removeAbility(int abilityID)
          Remove the ability from the abilities list and the default list.
 boolean removeSkill(int skillID)
          This method is for removing a skill from this profession.
 void setName(java.lang.String name)
          Sets the profession name.
 java.lang.String toString()
          Method overriding java's base object toString method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfessionObject

public ProfessionObject(java.lang.String name)
Method Detail

addAbilityMap

public void addAbilityMap(java.util.HashMap<java.lang.Integer,AgisAbility> abilityMap)
This method allows you to pass an already build ability map for this profession. NOTE: This will override the existing ability map.

Parameters:
abilityMap -

addDefaultAbilityMap

public void addDefaultAbilityMap(java.util.HashMap<java.lang.Integer,AgisAbility> defaultmap)
This method provides the ability to pass an already built default abilities map for this profession. NOTE: This will override the existing ability map.

Parameters:
defaultmap -

addAbilityMaps

public void addAbilityMaps(java.util.HashMap<java.lang.Integer,AgisAbility> abilityMap,
                           java.util.HashMap<java.lang.Integer,AgisAbility> defaultMap)
This method provides a shortcut for passing ability map as well as default ability map to the profession. NOTE: This will override the existing ability maps.

Parameters:
abilityMap -
defaultMap -

addAbility

public void addAbility(int abilityID,
                       boolean isdefault)
Adds an ability to this profession's list of abilitlies as well as add to default if needed.

Parameters:
abilityName -
isdefault -

addAbility

public void addAbility(int abilityID)

removeAbility

public boolean removeAbility(int abilityID)
Remove the ability from the abilities list and the default list.


hasAbility

public boolean hasAbility(java.lang.Integer abilityID)
Method for finding out if ability is available.


getAbility

public AgisAbility getAbility(java.lang.Integer abilityID)
Retrieves ability. NOTE: This does not check the validity of the request.


getAbilityMap

public java.util.HashMap<java.lang.Integer,AgisAbility> getAbilityMap()
Retrieves ability map. NOTE: This does not check the validity of the request.


getDefaultAbilityMap

public java.util.HashMap<java.lang.Integer,AgisAbility> getDefaultAbilityMap()
Retrieves the default ability map. NOTE: This does not check the validity of the request.


addSkillMap

public void addSkillMap(java.util.HashMap<java.lang.Integer,AgisSkill> skillMap)
This method allows passing an already built skillmap to the profession. NOTE: All existing skills in the skill map will be removed.


addDefaultSkillMap

public void addDefaultSkillMap(java.util.HashMap<java.lang.Integer,AgisSkill> defaultSkillMap)
This method allows passing an already built default skill map for the profession. NOTE: All existing skills in this skill map will be removed.


addSkillMaps

public void addSkillMaps(java.util.HashMap<java.lang.Integer,AgisSkill> skillMap,
                         java.util.HashMap<java.lang.Integer,AgisSkill> defaultSkillMap)
This method allows passing already built skill maps in for the profession. NOTE: All existing skill maps will be removed.


addSkill

public void addSkill(int skillID,
                     boolean isdefault)
Adds a skill to this profession, and places it into default if necessary.


addSkill

public void addSkill(int skillID)

removeSkill

public boolean removeSkill(int skillID)
This method is for removing a skill from this profession.


hasSkill

public boolean hasSkill(java.lang.Integer skillID)
Returns whether this profession has this skill in it's list.


getSkill

public AgisSkill getSkill(java.lang.Integer skillID)
Retrieves the skill. NOTE: This does not check the validity of the request.


getSkillMap

public java.util.HashMap<java.lang.Integer,AgisSkill> getSkillMap()
Retrieves entire skill map. NOTE: This does not check the validity of the request.


getDefaultSkillMap

public java.util.HashMap<java.lang.Integer,AgisSkill> getDefaultSkillMap()
Retrieves the default skill map. NOTE: This does not check the validity of the request.


setName

public void setName(java.lang.String name)
Sets the profession name.


getName

public java.lang.String getName()
Returns the profession name.


toString

public java.lang.String toString()
Method overriding java's base object toString method.

Overrides:
toString in class java.lang.Object

applyLevelingMap

public void applyLevelingMap(LevelingMap lm)

getLevelingMap

public LevelingMap getLevelingMap()

applyStatsLevelingMap

public void applyStatsLevelingMap(java.lang.String statname,
                                  LevelingMap lm)

getStatsLevelingMap

public LevelingMap getStatsLevelingMap(java.lang.String statname)

hasStatLevelModification

public boolean hasStatLevelModification(java.lang.String statname,
                                        int lvl)

addBaseStat

public void addBaseStat(java.lang.String statname)

isBaseStat

public boolean isBaseStat(java.lang.String statname)


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