Superfighters Deluxe
ExplosionHitArg Struct Reference

ExplosionHitCallback.Event explosion hit argument for one object More...

Public Member Functions

 ExplosionHitArg (int objectID, IObject hitObject, bool isPlayer, Vector2 hitPosition, ExplosionHitType hitType, float damage, Vector2 forceDirection, float impactPercentage)
 

Public Attributes

readonly float Damage
 Gets the taken damage caused by the explosion after modifiers and distance to the center. More...
 
readonly Vector2 ForceDirection
 Gets the explosion force direction vector. More...
 
readonly IObject HitObject
 Gets the hit object. More...
 
readonly Vector2 HitPosition
 Gets the registered hit position. More...
 
readonly ExplosionHitType HitType
 Gets the explosion hit type. More...
 
readonly float ImpactPercentage
 The explosion impact percentage power in the range [0.0 - 1.0] More...
 
readonly bool IsPlayer
 Gets if the affected object is a player. More...
 
readonly int ObjectID
 Gets the affected object ID. More...
 

Detailed Description

ExplosionHitCallback.Event explosion hit argument for one object

Constructor & Destructor Documentation

◆ ExplosionHitArg()

ExplosionHitArg ( int  objectID,
IObject  hitObject,
bool  isPlayer,
Vector2  hitPosition,
ExplosionHitType  hitType,
float  damage,
Vector2  forceDirection,
float  impactPercentage 
)

Parameters
objectID
hitObject
isPlayer
hitPosition
hitType
damage
forceDirection
impactPercentage

Member Data Documentation

◆ Damage

readonly float Damage

Gets the taken damage caused by the explosion after modifiers and distance to the center.

◆ ForceDirection

readonly Vector2 ForceDirection

Gets the explosion force direction vector.

◆ HitObject

readonly IObject HitObject

Gets the hit object.

◆ HitPosition

readonly Vector2 HitPosition

Gets the registered hit position.

◆ HitType

readonly ExplosionHitType HitType

Gets the explosion hit type.

◆ ImpactPercentage

readonly float ImpactPercentage

The explosion impact percentage power in the range [0.0 - 1.0]

◆ IsPlayer

readonly bool IsPlayer

Gets if the affected object is a player.

◆ ObjectID

readonly int ObjectID

Gets the affected object ID.