Class Skill
Class that represents a creature's standard skill.
Inheritance
Implements
Inherited Members
Namespace: Fibula.Creatures
Assembly: Fibula.Creatures.dll
Syntax
public class Skill : ISkill
Constructors
| Improve this Doc View SourceSkill(SkillType, UInt32, Double, Double, UInt32, UInt32, Double)
Initializes a new instance of the Skill class.
Declaration
public Skill(SkillType type, uint defaultLevel, double rate, double baseIncrease, uint level = 0U, uint maxLevel = 1U, double count = 0)
Parameters
Type | Name | Description |
---|---|---|
SkillType | type | This skill's type. |
System.UInt32 | defaultLevel | This skill's default level. |
System.Double | rate | This skill's rate of target count increase. |
System.Double | baseIncrease | This skill's target base increase level over level. |
System.UInt32 | level | This skill's current level. |
System.UInt32 | maxLevel | This skill's maximum level. |
System.Double | count | This skill's current count. |
Properties
| Improve this Doc View SourceBaseTargetIncrease
Gets this skill's target base increase level over level.
Declaration
public double BaseTargetIncrease { get; }
Property Value
Type | Description |
---|---|
System.Double |
Count
Gets this skill's current count.
Declaration
public double Count { get; }
Property Value
Type | Description |
---|---|
System.Double |
DefaultLevel
Gets this skill's default level.
Declaration
public uint DefaultLevel { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Level
Gets this skill's level.
Declaration
public uint Level { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
MaxLevel
Gets this skill's maximum level.
Declaration
public uint MaxLevel { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Percent
Gets the current percentual value between current and target counts this skill.
Declaration
public byte Percent { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Rate
Gets this skill's rate of target count increase.
Declaration
public double Rate { get; }
Property Value
Type | Description |
---|---|
System.Double |
StartingCountAtLevel
Gets the count at which the current level starts.
Declaration
public double StartingCountAtLevel { get; }
Property Value
Type | Description |
---|---|
System.Double |
TargetCount
Gets this skill's target count.
Declaration
public double TargetCount { get; }
Property Value
Type | Description |
---|---|
System.Double |
Type
Gets this skill's type.
Declaration
public SkillType Type { get; }
Property Value
Type | Description |
---|---|
SkillType |
Methods
| Improve this Doc View SourceIncreaseCounter(Double)
Increases this skill's counter.
Declaration
public void IncreaseCounter(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The amount by which to increase this skills counter. |
Events
| Improve this Doc View SourceChanged
Event triggered when this skill changed.
Declaration
public event OnSkillChanged Changed
Event Type
Type | Description |
---|---|
OnSkillChanged |