MoveCompletedEventArgs Class |
Special object used to hold arguments passed to the MoveCompletedEventHandler delegate. This class provides information about why the creature stopped, a MoveToAction describing the movement that took place or was to take place, and the state of the organism blocking the creatures path if the reason for stopping was being blocked.
Namespace: Terrarium.Sdk.Classes.Creature.Events
The MoveCompletedEventArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | MoveCompletedEventArgs | Initializes a new instance of the MoveCompletedEventArgs class |
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. Presents the reason for stopping in string form. |
Name | Description | |
---|---|---|
![]() | Action |
Retrieves the Acton that was completed.
(Inherited from ActionResponseEventArgs.) |
![]() | ActionID |
Retrives the ID of the action.
(Inherited from ActionResponseEventArgs.) |
![]() | BlockingOrganism | Provides the OrganismState of the blocking creature if one exists. This can be useful when writing event based movement algorithms and to find camouflaged creatures. |
![]() | MoveToAction | Provides the original MoveToAction created as a result of the BeginMoving function. This can be used to get the MovementVector which can be reused if the creature has not yet reached its destination. |
![]() | Reason | Provides the reason for a creature being stopped. This can either be that the creature reached it's destination or was somehow blocked by another creature. |