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

AdvancedCraftingSkill is the skill for alchemy and spellcrafting whitch add all combine system. More...

Inheritance diagram for DOL.GS.AdvancedCraftingSkill:
DOL.GS.AbstractProfession DOL.GS.AbstractCraftingSkill DOL.GS.Alchemy DOL.GS.SpellCrafting

List of all members.

Public Member Functions

virtual bool CombineItems (GamePlayer player)
 Called when player accept to combine items.
virtual bool IsAllowedToCombine (GamePlayer player, InventoryItem item)

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)
abstract void ApplyMagicalEffect (GamePlayer player, InventoryItem item)

Detailed Description

AdvancedCraftingSkill is the skill for alchemy and spellcrafting whitch add all combine system.


Member Function Documentation

abstract void DOL.GS.AdvancedCraftingSkill.ApplyMagicalEffect ( GamePlayer  player,
InventoryItem  item 
) [protected, pure virtual]

Apply the magical bonus to the item

Parameters:
player
item

Implemented in DOL.GS.Alchemy, and DOL.GS.SpellCrafting.

override bool DOL.GS.AdvancedCraftingSkill.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.AbstractCraftingSkill.

Reimplemented in DOL.GS.Alchemy, and DOL.GS.SpellCrafting.

virtual bool DOL.GS.AdvancedCraftingSkill.CombineItems ( GamePlayer  player) [virtual]

Called when player accept to combine items.

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

Check if the player can enchant the item

Parameters:
player
item
Returns:

Reimplemented in DOL.GS.Alchemy, and DOL.GS.SpellCrafting.


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