AttackCompletedEventArgs Class |
Special object used to hold arguments passed to the AttackCompletedEventHandler delegate. This class provides information about the results of the attack including damage inflicted, whether the creature was killed, or whether the creature escaped.
Namespace: Terrarium.Sdk.Classes.Creature.Events
The AttackCompletedEventArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | AttackCompletedEventArgs |
Initializes a new set of event arguments that can be used
in an event handler to notify the creature that an attack
has been completed.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Provides a string representation of this class for debugging purposes. Gives a count of damage inflicted, and whether or not the creature was killed or escaped. |
Name | Description | |
---|---|---|
![]() | Action |
Retrieves the Acton that was completed.
(Inherited from ActionResponseEventArgs.) |
![]() | ActionID |
Retrives the ID of the action.
(Inherited from ActionResponseEventArgs.) |
![]() | AttackAction | Provides the AttackAction that was created from the values passed into the BeginAttack method. This can be used to retrieve a state object for your target creature to continue your attack. |
![]() | Escaped | Provides information about the status of the target creature. If the creature escaped your attack then Escaped will be set to True. Creatures can escape by moving out of distance of an attack. |
![]() | InflictedDamage | Returns the amount of damage done to the target creature as a result of the attack. This number should be compared against the amount of damage the creature can withstand to help compute how difficult the creature will be to kill. |
![]() | Killed | Provides information about the status of the target creature. If the creature was killed by your attack then Killed will bet set to True. |