Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.Alchemy Class Reference
Inheritance diagram for DOL.GS.Alchemy:
DOL.GS.AdvancedCraftingSkill DOL.GS.AbstractProfession DOL.GS.AbstractCraftingSkill

List of all members.

Public Member Functions

override void GainCraftingSkillPoints (GamePlayer player, DBCraftedItem recipe, IList< DBCraftedXItem > rawMaterials)
 Gain a point in the appropriate skills for a recipe and materials.
override bool IsAllowedToCombine (GamePlayer player, InventoryItem item)
 This function is called when player accept the combine.
int GetItemMaxCharges (InventoryItem item)
 Get the maximum charge the item will have.

Protected Member Functions

override bool CheckForTools (GamePlayer player, DBCraftedItem recipe, ItemTemplate itemToCraft, IList< DBCraftedXItem > rawMaterials)
 Check if the player is near the needed tools (forge, lathe, etc)
override void ApplyMagicalEffect (GamePlayer player, InventoryItem item)
 Apply all needed magical bonus to the item.

Properties

override String Profession [get]

Member Function Documentation

override void DOL.GS.Alchemy.ApplyMagicalEffect ( GamePlayer  player,
InventoryItem  item 
) [protected, virtual]

Apply all needed magical bonus to the item.

Parameters:
player
item
Returns:

Implements DOL.GS.AdvancedCraftingSkill.

override bool DOL.GS.Alchemy.CheckForTools ( GamePlayer  player,
DBCraftedItem  recipe,
ItemTemplate  itemToCraft,
IList< DBCraftedXItem >  rawMaterials 
) [protected, virtual]

Check if the player is near the needed tools (forge, lathe, etc)

Parameters:
playerthe crafting player
recipethe recipe being used
itemToCraftthe item to make
rawMaterialsa list of raw materials needed to create this item
Returns:
true if required tools are found

Reimplemented from DOL.GS.AdvancedCraftingSkill.

override void DOL.GS.Alchemy.GainCraftingSkillPoints ( GamePlayer  player,
DBCraftedItem  recipe,
IList< DBCraftedXItem >  rawMaterials 
) [virtual]

Gain a point in the appropriate skills for a recipe and materials.

Reimplemented from DOL.GS.AbstractCraftingSkill.

int DOL.GS.Alchemy.GetItemMaxCharges ( InventoryItem  item)

Get the maximum charge the item will have.

Parameters:
item
Returns:
override bool DOL.GS.Alchemy.IsAllowedToCombine ( GamePlayer  player,
InventoryItem  item 
) [virtual]

This function is called when player accept the combine.

Parameters:
player
item

Reimplemented from DOL.GS.AdvancedCraftingSkill.


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