Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.SkillBase Class Reference

List of all members.

Static Public Member Functions

static void InitializeRaceResists ()
 Initializes the race resist table.
static void LoadSkills ()
static void LoadSpells ()
static void LoadSpellLines ()
static int ReloadSpellLine (string lineName)
static void LoadProcs ()
static void LoadSpecAbility ()
static int LoadSpecializations ()
static void SortStylesByLevel ()
static int GetArmorResist (InventoryItem armor, eDamageType damageType)
 Gets the natural armor resist to the give damage type.
static bool CheckPropertyType (eProperty prop, ePropertyType type)
 Check if property belongs to all of specified types.
static IAbilityActionHandler GetAbilityActionHandler (string keyName)
 Gets a new AbilityActionHandler instance associated with given KeyName.
static ISpecActionHandler GetSpecActionHandler (string keyName)
 Gets a new SpecActionHandler instance associated with given KeyName.
static void RegisterSpellLine (SpellLine line)
static void AddScriptedStyle (Specialization spec, DBStyle style)
 Add a new style to a specialization. If the specialization does not exist it will be created. After adding all styles call SortStyles to sort the list by level.
static void RegisterSpec (Specialization spec)
 Check and add this spec to m_specsByName.
static void UnRegisterSpellLine (string LineKeyName)
static List< RealmAbilityGetClassRealmAbilities (int classID)
 returns level 1 instantiated realm abilities, only for readonly use!
static Ability getClassRealmAbility (int charclass)
static Ability GetAbility (string keyname)
static Ability GetAbility (string keyname, int level)
static SpellLine GetSpellLine (string keyname)
 Return the spell line, creating a temporary one if not found.
static SpellLine GetSpellLine (string keyname, bool create)
 Return a spell line.
static void AddSpellToSpellLine (string spellLineID, int spellID)
 Add an existing spell to a spell line, adding a new line if needed. The spell level is set based on the spell ID (why I do not know) Primarily used for Champion spells but can be used to make any custom spell list From spells already loaded from the DB.
static void ClearSpellLine (string spellLineID)
 Remove all the spells from a spell line.
static void RemoveSpellList (string spellLineID)
 Remove a spell list.
static bool AddSpellToSpellLine (string spellLineID, Spell spellToAdd)
 Add a spell to a spell line, adding a new line if needed. The spell level is set based on the order added to the list.
static Specialization GetSpecialization (string keyname)
 Get a loaded specialization, warn if not found and create a dummy entry.
static Specialization GetSpecialization (string keyname, bool create)
 Get a specialization.
static List< StyleGetStyleList (string specID, int classId)
 return all styles for a specific specialization if no style are associated or spec is unknown the list will be empty
static List< AbilityGetSpecAbilityList (string specID)
 returns spec dependend abilities
static List< SpellGetSpellList (string spellLineID)
 return all spells for a specific spell-line if no spells are associated or spell-line is unknown the list will be empty
static Style GetStyleByID (int styleID, int classId)
 Find style with specific id and return a copy of it.
static bool UpdateSpell (int spellID)
 Update or add a spell to the global spell list. Useful for adding procs and charges to items without restarting server. This will not update a spell in a spell line.
static Spell GetSpellByID (int spellID)
 Returns spell with id, level of spell is always 1.
static Spell FindSpell (int spellID, SpellLine line)
 Will attempt to find either in the spell line given or in the list of all spells.
static string GetPropertyName (eProperty prop)
 Get display name of property.
static int GetRaceResist (int race, eResist type)
 determine race-dependent base resist
static string ObjectTypeToSpec (eObjectType objectType)
 Convert object type to spec needed to use that object.
static eProperty SpecToSkill (string specKey)
 Convert spec to skill property.
static eProperty SpecToFocus (string specKey)
 Convert spec to focus.

Static Protected Attributes

static readonly Dictionary
< string, Specialization
m_specsByName = new Dictionary<string, Specialization>()
static readonly Dictionary
< string, DBAbility > 
m_abilitiesByName = new Dictionary<string, DBAbility>()
static readonly Dictionary
< string, SpellLine
m_spellLinesByName = new Dictionary<string, SpellLine>()
static readonly Dictionary
< string, Type > 
m_abilityActionHandler = new Dictionary<string, Type>()
static readonly Dictionary
< string, Type > 
m_implementationTypeCache = new Dictionary<string, Type>()
static readonly Dictionary
< string, Type > 
m_specActionHandler = new Dictionary<string, Type>()
static readonly Dictionary
< string, List< Spell > > 
m_spellLists = new Dictionary<string, List<Spell>>()
static readonly Dictionary
< string, List< Style > > 
m_styleLists = new Dictionary<string, List<Style>>()
static readonly Dictionary
< string, List< Ability > > 
m_specAbilities = new Dictionary<string, List<Ability>>()
static readonly Dictionary
< int, Dictionary< int, List
< DBStyleXSpell > > > 
m_styleSpells = new Dictionary<int, Dictionary<int, List<DBStyleXSpell>>>()
 (procs) global table for style => list of styles dependend spells [StyleID, [ClassID, DBStyleXSpell]] ClassID for normal style is 0
static readonly Dictionary
< KeyValuePair< int, int >
, Style
m_stylesByIDClass = new Dictionary<KeyValuePair<int, int>, Style>()
static readonly Dictionary
< int, List< RealmAbility > > 
m_classRealmAbilities = new Dictionary<int, List<RealmAbility>>()
static readonly Dictionary
< int, Spell
m_spells = new Dictionary<int, Spell>(5000)
static Dictionary< int, DBSpell > m_dbSpells = new Dictionary<int, DBSpell>()
static Dictionary< eObjectType,
string > 
m_objectTypeToSpec = new Dictionary<eObjectType, string>()
 Holds object type to spec convertion table.
static Dictionary< string,
eProperty > 
m_specToSkill = new Dictionary<string, eProperty>()
 Holds spec to skill table.
static Dictionary< string,
eProperty > 
m_specToFocus = new Dictionary<string, eProperty>()
 Holds spec to focus table.
static readonly Dictionary
< eProperty, string > 
m_propertyNames = new Dictionary<eProperty, string>()
 table for property names
static Dictionary< int, int[]> m_raceResists
 Table to hold the race resists.

Detailed Description


Member Function Documentation

static void DOL.GS.SkillBase.AddScriptedStyle ( Specialization  spec,
DBStyle  style 
) [static]

Add a new style to a specialization. If the specialization does not exist it will be created. After adding all styles call SortStyles to sort the list by level.

Parameters:
style
static void DOL.GS.SkillBase.AddSpellToSpellLine ( string  spellLineID,
int  spellID 
) [static]

Add an existing spell to a spell line, adding a new line if needed. The spell level is set based on the spell ID (why I do not know) Primarily used for Champion spells but can be used to make any custom spell list From spells already loaded from the DB.

Parameters:
spellLineID
spellID
static bool DOL.GS.SkillBase.AddSpellToSpellLine ( string  spellLineID,
Spell  spellToAdd 
) [static]

Add a spell to a spell line, adding a new line if needed. The spell level is set based on the order added to the list.

Parameters:
spellLineID
spellToAdd
Returns:
static bool DOL.GS.SkillBase.CheckPropertyType ( eProperty  prop,
ePropertyType  type 
) [static]

Check if property belongs to all of specified types.

Parameters:
propThe property to check
typeThe types to check
Returns:
true if property belongs to all types
static void DOL.GS.SkillBase.ClearSpellLine ( string  spellLineID) [static]

Remove all the spells from a spell line.

Parameters:
spellLineID
static Spell DOL.GS.SkillBase.FindSpell ( int  spellID,
SpellLine  line 
) [static]

Will attempt to find either in the spell line given or in the list of all spells.

Parameters:
spellID
line
Returns:
static Ability DOL.GS.SkillBase.GetAbility ( string  keyname) [static]
Parameters:
keyname
Returns:
static Ability DOL.GS.SkillBase.GetAbility ( string  keyname,
int  level 
) [static]
Parameters:
keyname
level
Returns:
static IAbilityActionHandler DOL.GS.SkillBase.GetAbilityActionHandler ( string  keyName) [static]

Gets a new AbilityActionHandler instance associated with given KeyName.

Parameters:
keyName
Returns:
static int DOL.GS.SkillBase.GetArmorResist ( InventoryItem  armor,
eDamageType  damageType 
) [static]

Gets the natural armor resist to the give damage type.

Parameters:
armor
damageType
Returns:
resist value
static List<RealmAbility> DOL.GS.SkillBase.GetClassRealmAbilities ( int  classID) [static]

returns level 1 instantiated realm abilities, only for readonly use!

Parameters:
classID
Returns:
static string DOL.GS.SkillBase.GetPropertyName ( eProperty  prop) [static]

Get display name of property.

Parameters:
prop
Returns:
static int DOL.GS.SkillBase.GetRaceResist ( int  race,
eResist  type 
) [static]

determine race-dependent base resist

Parameters:
raceValue must be greater than 0
type
Returns:
static List<Ability> DOL.GS.SkillBase.GetSpecAbilityList ( string  specID) [static]

returns spec dependend abilities

Parameters:
specIDKeyName of spec
Returns:
list of abilities or empty list
static ISpecActionHandler DOL.GS.SkillBase.GetSpecActionHandler ( string  keyName) [static]

Gets a new SpecActionHandler instance associated with given KeyName.

Parameters:
keyName
Returns:
static Specialization DOL.GS.SkillBase.GetSpecialization ( string  keyname) [static]

Get a loaded specialization, warn if not found and create a dummy entry.

Parameters:
keyname
Returns:
static Specialization DOL.GS.SkillBase.GetSpecialization ( string  keyname,
bool  create 
) [static]

Get a specialization.

Parameters:
keyname
createif not found generate a warning and create a dummy entry
Returns:
static Spell DOL.GS.SkillBase.GetSpellByID ( int  spellID) [static]

Returns spell with id, level of spell is always 1.

Parameters:
spellID
Returns:
static SpellLine DOL.GS.SkillBase.GetSpellLine ( string  keyname) [static]

Return the spell line, creating a temporary one if not found.

Parameters:
keyname
Returns:
static SpellLine DOL.GS.SkillBase.GetSpellLine ( string  keyname,
bool  create 
) [static]

Return a spell line.

Parameters:
keynameThe key name of the line
createShould we create a temp spell line if not found?
Returns:
static List<Spell> DOL.GS.SkillBase.GetSpellList ( string  spellLineID) [static]

return all spells for a specific spell-line if no spells are associated or spell-line is unknown the list will be empty

Parameters:
spellLineIDKeyName of spell-line
Returns:
list of spells, never null
static Style DOL.GS.SkillBase.GetStyleByID ( int  styleID,
int  classId 
) [static]

Find style with specific id and return a copy of it.

Parameters:
styleIDid of style
classIdClassID for which style list is requested
Returns:
style or null if not found
static List<Style> DOL.GS.SkillBase.GetStyleList ( string  specID,
int  classId 
) [static]

return all styles for a specific specialization if no style are associated or spec is unknown the list will be empty

Parameters:
specIDKeyName of spec
classIdClassID for which style list is requested
Returns:
list of styles, never null
static void DOL.GS.SkillBase.InitializeRaceResists ( ) [static]

Initializes the race resist table.

static string DOL.GS.SkillBase.ObjectTypeToSpec ( eObjectType  objectType) [static]

Convert object type to spec needed to use that object.

Parameters:
objectTypetype of the object
Returns:
spec names needed to use that object type
static void DOL.GS.SkillBase.RegisterSpec ( Specialization  spec) [static]

Check and add this spec to m_specsByName.

Parameters:
spec
static void DOL.GS.SkillBase.RemoveSpellList ( string  spellLineID) [static]

Remove a spell list.

Parameters:
spellLineID
static eProperty DOL.GS.SkillBase.SpecToFocus ( string  specKey) [static]

Convert spec to focus.

Parameters:
specKey
Returns:
static eProperty DOL.GS.SkillBase.SpecToSkill ( string  specKey) [static]

Convert spec to skill property.

Parameters:
specKey
Returns:
static bool DOL.GS.SkillBase.UpdateSpell ( int  spellID) [static]

Update or add a spell to the global spell list. Useful for adding procs and charges to items without restarting server. This will not update a spell in a spell line.

Parameters:
spellID
Returns:

Member Data Documentation

Dictionary<eObjectType, string> DOL.GS.SkillBase.m_objectTypeToSpec = new Dictionary<eObjectType, string>() [static, protected]

Holds object type to spec convertion table.

readonly Dictionary<eProperty, string> DOL.GS.SkillBase.m_propertyNames = new Dictionary<eProperty, string>() [static, protected]

table for property names

Dictionary<int, int[]> DOL.GS.SkillBase.m_raceResists [static, protected]

Table to hold the race resists.

Dictionary<string, eProperty> DOL.GS.SkillBase.m_specToFocus = new Dictionary<string, eProperty>() [static, protected]

Holds spec to focus table.

Dictionary<string, eProperty> DOL.GS.SkillBase.m_specToSkill = new Dictionary<string, eProperty>() [static, protected]

Holds spec to skill table.

readonly Dictionary<int, Dictionary<int, List<DBStyleXSpell> > > DOL.GS.SkillBase.m_styleSpells = new Dictionary<int, Dictionary<int, List<DBStyleXSpell>>>() [static, protected]

(procs) global table for style => list of styles dependend spells [StyleID, [ClassID, DBStyleXSpell]] ClassID for normal style is 0


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events