Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.GamePet Class Reference
Inheritance diagram for DOL.GS.GamePet:
DOL.GS.GameNPC DOL.GS.GameLiving DOL.GS.GameObject DOL.GS.Point3D DOL.GS.Point2D DOL.GS.IPoint3D DOL.GS.IPoint2D DOL.GS.IPoint2D DOL.GS.BDPet DOL.GS.IllusionBladePet DOL.GS.NecromancerPet DOL.GS.TheurgistPet DOL.GS.TraitorDaggerPet DOL.GS.TurretPet DOL.GS.ZoarkatPet DOL.GS.BDSubPet DOL.GS.CommanderPet

List of all members.

Public Member Functions

 GamePet (INpcTemplate template)
override int GetModifiedSpecLevel (string keyName)
 Specialisation level including item bonuses and RR.
override void OnAfterSpellCastSequence (ISpellHandler handler)
 Called when spell has finished casting.
override eDamageType AttackDamageType (InventoryItem weapon)
 The type of damage the currently active weapon does.
override int AttackSpeed (params InventoryItem[] weapons)
 Get melee speed in milliseconds.
override int CalculateLeftHandSwingCount ()
 Calculates how many times left hand can swing.
override double GetWeaponSkill (InventoryItem weapon)
 Get weapon skill for the pet (for formula see Spydor's Web, http://daoc.nisrv.com/modules.php?name=Weapon_Skill_Calc).
override int WeaponSpecLevel (InventoryItem weapon)
 Weapon specialisation is up to level, if a weapon is equipped.
override void Die (GameObject killer)
 Called when this living dies.
override bool IsObjectGreyCon (GameObject obj)
 Checks whether object is grey con to this living.

Protected Member Functions

virtual void AddStatsToWeapon ()
 Load equipment for the pet.
override Style GetStyleToUse ()
 Pick a random style for now.
override void BuildAmbientTexts ()
 Spawn texts are in database.

Properties

GameLiving Owner [get]
override double Effectiveness [get]
 Multiplier for melee and magic.
override int SpellCriticalChance [get, set]
 Returns the chance for a critical hit with a spell.
override short Strength [get]
 Pet strength is determined by using template stength as a percentage multiplier So A template value of 50 would mean pet strength is 50% of normal, 150 = 150% of normal, etc.
override short Constitution [get]
 Base constitution.
override short Dexterity [get]
 Base dexterity.
override short Quickness [get]
 Base quickness.
override int MaxHealth [get]
override bool CanUseLefthandedWeapon [get]
 Whether or not pet can use left hand weapon.

Member Function Documentation

virtual void DOL.GS.GamePet.AddStatsToWeapon ( ) [protected, virtual]

Load equipment for the pet.

Parameters:
templateIDEquipment Template ID.
Returns:
True on success, else false.
override eDamageType DOL.GS.GamePet.AttackDamageType ( InventoryItem  weapon) [virtual]

The type of damage the currently active weapon does.

Parameters:
weapon
Returns:

Reimplemented from DOL.GS.GameNPC.

override int DOL.GS.GamePet.AttackSpeed ( params InventoryItem[]  weapons) [virtual]

Get melee speed in milliseconds.

Parameters:
weapons
Returns:

Reimplemented from DOL.GS.GameLiving.

override void DOL.GS.GamePet.BuildAmbientTexts ( ) [protected, virtual]

Spawn texts are in database.

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.TurretPet, and DOL.GS.TheurgistPet.

override int DOL.GS.GamePet.CalculateLeftHandSwingCount ( ) [virtual]

Calculates how many times left hand can swing.

Returns:

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.NecromancerPet.

override void DOL.GS.GamePet.Die ( GameObject  killer) [virtual]

Called when this living dies.

Reimplemented from DOL.GS.GameNPC.

override int DOL.GS.GamePet.GetModifiedSpecLevel ( string  keyName) [virtual]

Specialisation level including item bonuses and RR.

Parameters:
keyNameThe specialisation line.
Returns:
The specialisation level.

Reimplemented from DOL.GS.GameLiving.

override Style DOL.GS.GamePet.GetStyleToUse ( ) [protected, virtual]

Pick a random style for now.

Returns:

Reimplemented from DOL.GS.GameLiving.

override double DOL.GS.GamePet.GetWeaponSkill ( InventoryItem  weapon) [virtual]

Get weapon skill for the pet (for formula see Spydor's Web, http://daoc.nisrv.com/modules.php?name=Weapon_Skill_Calc).

Parameters:
weapon
Returns:

Reimplemented from DOL.GS.GameLiving.

override bool DOL.GS.GamePet.IsObjectGreyCon ( GameObject  obj) [virtual]

Checks whether object is grey con to this living.

Parameters:
obj
Returns:

Reimplemented from DOL.GS.GameLiving.

override void DOL.GS.GamePet.OnAfterSpellCastSequence ( ISpellHandler  handler) [virtual]

Called when spell has finished casting.

Parameters:
handler

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.NecromancerPet.

override int DOL.GS.GamePet.WeaponSpecLevel ( InventoryItem  weapon) [virtual]

Weapon specialisation is up to level, if a weapon is equipped.

Parameters:
weapon
Returns:

Reimplemented from DOL.GS.GameLiving.


Property Documentation

override bool DOL.GS.GamePet.CanUseLefthandedWeapon [get]

Whether or not pet can use left hand weapon.

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.NecromancerPet.

override short DOL.GS.GamePet.Constitution [get]

Base constitution.

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.NecromancerPet.

override short DOL.GS.GamePet.Dexterity [get]

Base dexterity.

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.NecromancerPet.

override double DOL.GS.GamePet.Effectiveness [get]

Multiplier for melee and magic.

Reimplemented from DOL.GS.GameLiving.

override short DOL.GS.GamePet.Quickness [get]

Base quickness.

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.NecromancerPet.

override int DOL.GS.GamePet.SpellCriticalChance [get, set]

Returns the chance for a critical hit with a spell.

Reimplemented from DOL.GS.GameLiving.

override short DOL.GS.GamePet.Strength [get]

Pet strength is determined by using template stength as a percentage multiplier So A template value of 50 would mean pet strength is 50% of normal, 150 = 150% of normal, etc.

Reimplemented from DOL.GS.GameNPC.

Reimplemented in DOL.GS.NecromancerPet.


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