Class TurnToDirectionOperation
Class that represents an event for a creature turning.
Inheritance
System.Object
Priority_Queue.FastPriorityQueueNode
Priority_Queue.StablePriorityQueueNode
TurnToDirectionOperation
Inherited Members
Priority_Queue.StablePriorityQueueNode.InsertionIndex
Priority_Queue.FastPriorityQueueNode.Priority
Priority_Queue.FastPriorityQueueNode.QueueIndex
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Mechanics.Operations
Assembly: Fibula.Mechanics.dll
Syntax
public class TurnToDirectionOperation : Operation, IEquatable<BaseEvent>, IOperation, IEvent
Constructors
| Improve this Doc View SourceTurnToDirectionOperation(ICreature, Direction)
Initializes a new instance of the TurnToDirectionOperation class.
Declaration
public TurnToDirectionOperation(ICreature creature, Direction direction)
Parameters
Type | Name | Description |
---|---|---|
ICreature | creature | The creature which is turning. |
Direction | direction | The direction to which the creature is turning. |
Properties
| Improve this Doc View SourceCreature
Gets a reference to the creature turning.
Declaration
public ICreature Creature { get; }
Property Value
Type | Description |
---|---|
ICreature |
Direction
Gets the direction in which the creature is turning.
Declaration
public Direction Direction { get; }
Property Value
Type | Description |
---|---|
Direction |
Methods
| Improve this Doc View SourceExecute(IOperationContext)
Executes the operation's logic.
Declaration
protected override void Execute(IOperationContext context)
Parameters
Type | Name | Description |
---|---|---|
IOperationContext | context | A reference to the operation context. |
Overrides
Implements
System.IEquatable<T>