|
ActionAdventureKit 1.9.3
|
Public Member Functions | |
| FakeSender (DamageParameter damage, Vector3 direction) | |
| Vector3 | GetPosition () |
| position of the receiver, may be used to determine damage direction | |
| Vector3 | GetDirection (IDamageReceiver receiver) |
| calculates direction of damage between this sender and a receiver | |
| void | OnDamage (DamageEvent e) |
| this is where the main damage handling should take place and damage vectors are assigned OnDamage is called in the order Sender > Receiver > Damage for example if a character is wearing protective gear it may reduce the damage value here this method is called for every damage parameter see DamageEvent for more details | |
| void | PostDamage (IDamageReceiver receiver, List< DamageEvent > events) |
| called after alle the damages have been applied this is a good spot to react to the change of state that has been done by the damages for example death or destruction if health was reduced to 0 by the damages | |
| bool | PreDamage (IDamageReceiver receiver) |
| called before any real damage handling to check if the handling is valid and should continue for example if a character is currently dodging damage handling can be cancelled here | |
Properties | |
| CharacterBase | AssociatedCharacter [get] |
| character that owns or is otherwise associted with the object | |
| IEnumerable< DamageParameter > | Damages [get] |
Properties inherited from AdventureCore.IDamageSender | |
Properties inherited from AdventureCore.ICharacterAssociator | |
| Vector3 AdventureCore.DamageKind.FakeSender.GetDirection | ( | IDamageReceiver | receiver | ) |
calculates direction of damage between this sender and a receiver
| receiver |
Implements AdventureCore.IDamageSender.
| Vector3 AdventureCore.DamageKind.FakeSender.GetPosition | ( | ) |
position of the receiver, may be used to determine damage direction
Implements AdventureCore.IDamageSender.
|
inline |
this is where the main damage handling should take place and damage vectors are assigned
OnDamage is called in the order Sender > Receiver > Damage
for example if a character is wearing protective gear it may reduce the damage value here
this method is called for every damage parameter see DamageEvent for more details
| e |
Implements AdventureCore.IDamageSender.
|
inline |
called after alle the damages have been applied
this is a good spot to react to the change of state that has been done by the damages
for example death or destruction if health was reduced to 0 by the damages
| sender | |
| events |
Implements AdventureCore.IDamageSender.
|
inline |
called before any real damage handling to check if the handling is valid and should continue
for example if a character is currently dodging damage handling can be cancelled here
| receiver |
Implements AdventureCore.IDamageSender.
|
get |
character that owns or is otherwise associted with the object
Implements AdventureCore.ICharacterAssociator.
|
get |
Implements AdventureCore.IDamageSender.