Search Results for

    Show / Hide Table of Contents

    Class DamageCalculator

    Inheritance
    System.Object
    DamageCalculator
    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: Oasys.Common.Logic
    Assembly: Oasys.Common.dll
    Syntax
    public static class DamageCalculator

    Methods

    CalculateActualDamage(Single, Single, Single, Single, Single, Single, Single, Single, Boolean, Int32)

    Declaration
    public static float CalculateActualDamage(float armorMod, float physicalDamageReductionMod, float magicResistMod, float magicDamageReductionMod, float physicalDamage, float magicDamage, float trueDamage, float generalDamageReductionMod, bool hasPtaBuff, int attackerLevel)
    Parameters
    Type Name Description
    System.Single armorMod
    System.Single physicalDamageReductionMod
    System.Single magicResistMod
    System.Single magicDamageReductionMod
    System.Single physicalDamage
    System.Single magicDamage
    System.Single trueDamage
    System.Single generalDamageReductionMod
    System.Boolean hasPtaBuff
    System.Int32 attackerLevel
    Returns
    Type Description
    System.Single

    CalculateActualDamage<TObject>(TObject, TObject, Single)

    Declaration
    public static float CalculateActualDamage<TObject>(TObject attacker, TObject target, float physicalDamage)
        where TObject : GameObjectBase
    Parameters
    Type Name Description
    TObject attacker
    TObject target
    System.Single physicalDamage
    Returns
    Type Description
    System.Single
    Type Parameters
    Name Description
    TObject

    CalculateActualDamage<TObject>(TObject, TObject, Single, Single, Single)

    Declaration
    public static float CalculateActualDamage<TObject>(TObject attacker, TObject target, float physicalDamage, float magicDamage, float trueDamage)
        where TObject : GameObjectBase
    Parameters
    Type Name Description
    TObject attacker
    TObject target
    System.Single physicalDamage
    System.Single magicDamage
    System.Single trueDamage
    Returns
    Type Description
    System.Single
    Type Parameters
    Name Description
    TObject

    CalculateActualDamage<TDamageInfo, TObject>(TDamageInfo)

    Declaration
    public static float CalculateActualDamage<TDamageInfo, TObject>(TDamageInfo damageInfo)
        where TDamageInfo : DamageCalculator.DamageInfo<TObject> where TObject : GameObjectBase
    Parameters
    Type Name Description
    TDamageInfo damageInfo
    Returns
    Type Description
    System.Single
    Type Parameters
    Name Description
    TDamageInfo
    TObject

    GetBasicAttackDamage(GameObjectBase, GameObjectBase, DamageCalculator.BasicAttackDamage)

    Declaration
    public static float GetBasicAttackDamage(GameObjectBase attacker, GameObjectBase target, DamageCalculator.BasicAttackDamage damagePossibility)
    Parameters
    Type Name Description
    GameObjectBase attacker
    GameObjectBase target
    DamageCalculator.BasicAttackDamage damagePossibility
    Returns
    Type Description
    System.Single

    GetGeneralDamageReductionModifier<T>(T)

    Declaration
    public static float GetGeneralDamageReductionModifier<T>(T target)
        where T : GameObjectBase
    Parameters
    Type Name Description
    T target
    Returns
    Type Description
    System.Single
    Type Parameters
    Name Description
    T

    GetMagicDamageReductionModifier<T>(T)

    Declaration
    public static float GetMagicDamageReductionModifier<T>(T target)
        where T : GameObjectBase
    Parameters
    Type Name Description
    T target
    Returns
    Type Description
    System.Single
    Type Parameters
    Name Description
    T

    GetMaximumBasicAttackDamage(GameObjectBase, GameObjectBase)

    Declaration
    public static float GetMaximumBasicAttackDamage(GameObjectBase attacker, GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase attacker
    GameObjectBase target
    Returns
    Type Description
    System.Single

    GetMedianBasicAttackDamage(GameObjectBase, GameObjectBase)

    Declaration
    public static float GetMedianBasicAttackDamage(GameObjectBase attacker, GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase attacker
    GameObjectBase target
    Returns
    Type Description
    System.Single

    GetMinimumBasicAttackDamage(GameObjectBase, GameObjectBase)

    Declaration
    public static float GetMinimumBasicAttackDamage(GameObjectBase attacker, GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase attacker
    GameObjectBase target
    Returns
    Type Description
    System.Single

    GetNextBasicAttackDamage(GameObjectBase, GameObjectBase)

    Declaration
    public static float GetNextBasicAttackDamage(GameObjectBase attacker, GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase attacker
    GameObjectBase target
    Returns
    Type Description
    System.Single

    GetPhysicalDamageReductionModifier<T>(T)

    Declaration
    public static float GetPhysicalDamageReductionModifier<T>(T target)
        where T : GameObjectBase
    Parameters
    Type Name Description
    T target
    Returns
    Type Description
    System.Single
    Type Parameters
    Name Description
    T

    GetTargetHealthAfterBasicAttack(GameObjectBase, GameObjectBase)

    Declaration
    public static float GetTargetHealthAfterBasicAttack(GameObjectBase attacker, GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase attacker
    GameObjectBase target
    Returns
    Type Description
    System.Single
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾