Class DamageCalculator
Standard damage calculator
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()
Assembly: Oasys.SDK.dll
Syntax
public class DamageCalculator
Methods
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
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
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 |
|
GetArmorMod(GameObjectBase, GameObjectBase)
Declaration
public static float GetArmorMod(GameObjectBase attacker, GameObjectBase target)
Parameters
Returns
Type |
Description |
System.Single |
|
GetCombatArmor(GameObjectBase, GameObjectBase)
Declaration
public static float GetCombatArmor(GameObjectBase attacker, GameObjectBase target)
Parameters
Returns
Type |
Description |
System.Single |
|
GetCombatMagicResist(GameObjectBase, GameObjectBase)
Declaration
public static float GetCombatMagicResist(GameObjectBase attacker, GameObjectBase target)
Parameters
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
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
GetMagicResistMod(GameObjectBase, GameObjectBase)
Declaration
public static float GetMagicResistMod(GameObjectBase attacker, GameObjectBase target)
Parameters
Returns
Type |
Description |
System.Single |
|
GetNextBasicAttackDamage(GameObjectBase, GameObjectBase)
Gets the player's next attack damage to be dealt to the target.
Declaration
public static float GetNextBasicAttackDamage(GameObjectBase attacker, GameObjectBase target)
Parameters
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
GetTargetHealthAfterBasicAttack(GameObjectBase, GameObjectBase)
Gets the target's health after player's basic attack.
Declaration
public static float GetTargetHealthAfterBasicAttack(GameObjectBase attacker, GameObjectBase target)
Parameters
Returns
Type |
Description |
System.Single |
|
Extension Methods