Show / Hide Table of Contents

    Class MonsterSkill

    Class that represents a monster's standard skill.

    Inheritance
    System.Object
    MonsterSkill
    Implements
    ISkill
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Creatures
    Assembly: Fibula.Creatures.dll
    Syntax
    public class MonsterSkill : ISkill

    Constructors

    | Improve this Doc View Source

    MonsterSkill(SkillType, Int32, Int32, Int32, UInt32, UInt32, Byte)

    Initializes a new instance of the MonsterSkill class.

    Declaration
    public MonsterSkill(SkillType type, int defaultLevel, int level, int maxLevel, uint targetForNextLevel, uint targetIncreaseFactor, byte increasePerLevel)
    Parameters
    Type Name Description
    SkillType type

    This skill's type.

    System.Int32 defaultLevel

    This skill's default level.

    System.Int32 level

    This skill's current level.

    System.Int32 maxLevel

    This skill's maximum level.

    System.UInt32 targetForNextLevel

    This skill's target count for next level.

    System.UInt32 targetIncreaseFactor

    This skill's target increase factor for calculating the next level's target.

    System.Byte increasePerLevel

    This skill's value increase level over level.

    Properties

    | Improve this Doc View Source

    BaseTargetIncrease

    Gets this skill's target base increase level over level.

    Declaration
    public double BaseTargetIncrease { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Count

    Gets this skill's current count.

    Declaration
    public double Count { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    DefaultLevel

    Gets this skill's default level.

    Declaration
    public uint DefaultLevel { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Level

    Gets this skill's level.

    Declaration
    public uint Level { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    MaxLevel

    Gets this skill's maximum level.

    Declaration
    public uint MaxLevel { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Percent

    Gets the current percentual value between current and target counts this skill.

    Declaration
    public byte Percent { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    PerLevelIncrease

    Gets the value by which to advance on skill level increase.

    Declaration
    public byte PerLevelIncrease { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Rate

    Gets this skill's rate of target count increase.

    Declaration
    public double Rate { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    StartingCountAtLevel

    Gets the count at which the current level starts.

    Declaration
    public double StartingCountAtLevel { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    TargetCount

    Gets this skill's target count.

    Declaration
    public double TargetCount { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Type

    Gets this skill's type.

    Declaration
    public SkillType Type { get; }
    Property Value
    Type Description
    SkillType

    Methods

    | Improve this Doc View Source

    IncreaseCounter(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 Source

    Changed

    Event triggered when this skill changes.

    Declaration
    public event OnSkillChanged Changed
    Event Type
    Type Description
    OnSkillChanged

    Implements

    ISkill

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.