Click or drag to resize
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.

Inheritance Hierarchy

Namespace: Terrarium.Sdk.Classes.Creature.Events
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
[SerializableAttribute]
public class AttackCompletedEventArgs : ActionResponseEventArgs

The AttackCompletedEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodAttackCompletedEventArgs
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.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString

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.

(Overrides ActionResponseEventArgsToString.)
Top
Properties
  NameDescription
Public propertyAction
Retrieves the Acton that was completed.
(Inherited from ActionResponseEventArgs.)
Public propertyActionID
Retrives the ID of the action.
(Inherited from ActionResponseEventArgs.)
Public propertyAttackAction

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.

Public propertyEscaped

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.

Public propertyInflictedDamage

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.

Public propertyKilled

Provides information about the status of the target creature. If the creature was killed by your attack then Killed will bet set to True.

Top
See Also