TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.TypedDamage Class Reference

A class used to store and define typed damage impact : damage caused, condition or movement speed changes, etc. More...

Public Attributes

DamageType AssociatedDamageType
 the type of damage associated to this definition
float MinDamageCaused = 10f
 The min amount of health to remove from the player's health.
float MaxDamageCaused = 10f
 The max amount of health to remove from the player's health.
bool ForceCharacterCondition = false
 whether or not this damage, when applied, should force the character into a specified condition
CharacterStates.CharacterConditions ForcedCondition
 when in forced character condition mode, the condition to which to swap
bool DisableGravity = false
 when in forced character condition mode, whether or not to disable gravity
bool ResetControllerForces = false
 when in forced character condition mode, whether or not to reset controller forces
float ForcedConditionDuration = 3f
 when in forced character condition mode, the duration of the effect, after which condition will be reverted
bool ApplyMovementMultiplier = false
 whether or not to apply a movement multiplier to the damaged character
float MovementMultiplier = 0.5f
 the movement multiplier to apply when ApplyMovementMultiplier is true
float MovementMultiplierDuration = 2f
 the duration of the movement multiplier, if ApplyMovementMultiplier is true

Protected Attributes

int _lastRandomFrame = -1000
float _lastRandomValue = 0f

Properties

virtual float DamageCaused [get]

Detailed Description

A class used to store and define typed damage impact : damage caused, condition or movement speed changes, etc.

Member Data Documentation

◆ _lastRandomFrame

int MoreMountains.TopDownEngine.TypedDamage._lastRandomFrame = -1000
protected

◆ _lastRandomValue

float MoreMountains.TopDownEngine.TypedDamage._lastRandomValue = 0f
protected

◆ ApplyMovementMultiplier

bool MoreMountains.TopDownEngine.TypedDamage.ApplyMovementMultiplier = false

whether or not to apply a movement multiplier to the damaged character

◆ AssociatedDamageType

DamageType MoreMountains.TopDownEngine.TypedDamage.AssociatedDamageType

the type of damage associated to this definition

◆ DisableGravity

bool MoreMountains.TopDownEngine.TypedDamage.DisableGravity = false

when in forced character condition mode, whether or not to disable gravity

◆ ForceCharacterCondition

bool MoreMountains.TopDownEngine.TypedDamage.ForceCharacterCondition = false

whether or not this damage, when applied, should force the character into a specified condition

◆ ForcedCondition

CharacterStates.CharacterConditions MoreMountains.TopDownEngine.TypedDamage.ForcedCondition

when in forced character condition mode, the condition to which to swap

◆ ForcedConditionDuration

float MoreMountains.TopDownEngine.TypedDamage.ForcedConditionDuration = 3f

when in forced character condition mode, the duration of the effect, after which condition will be reverted

◆ MaxDamageCaused

float MoreMountains.TopDownEngine.TypedDamage.MaxDamageCaused = 10f

The max amount of health to remove from the player's health.

◆ MinDamageCaused

float MoreMountains.TopDownEngine.TypedDamage.MinDamageCaused = 10f

The min amount of health to remove from the player's health.

◆ MovementMultiplier

float MoreMountains.TopDownEngine.TypedDamage.MovementMultiplier = 0.5f

the movement multiplier to apply when ApplyMovementMultiplier is true

◆ MovementMultiplierDuration

float MoreMountains.TopDownEngine.TypedDamage.MovementMultiplierDuration = 2f

the duration of the movement multiplier, if ApplyMovementMultiplier is true

◆ ResetControllerForces

bool MoreMountains.TopDownEngine.TypedDamage.ResetControllerForces = false

when in forced character condition mode, whether or not to reset controller forces

Property Documentation

◆ DamageCaused

virtual float MoreMountains.TopDownEngine.TypedDamage.DamageCaused
get

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Characters/Damage/TypedDamage.cs