Click or drag to resize
AttackedEventArgs Class

Special object used to hold arguments passed to the AttackedEventHandler delegate. Contains the state of the creature attacking your creature. This is useful in setting up a good defense

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 AttackedEventArgs : OrganismEventArgs

The AttackedEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodAttackedEventArgs
Creates a new set of event arguments that can be used to notify a creature that another creature has completed an attack action against them.
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. Prints the Attacker's GUID so you can identify the creature being attacked using the property browser.

(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyAttacker

Provides the state of the creature attacking your creature. You can use this state to attack the creature back, defend, or run away.

Top
See Also