Class ChangeModesOperation
Class that represents a change modes operation.
Inheritance
System.Object
Priority_Queue.FastPriorityQueueNode
Priority_Queue.StablePriorityQueueNode
ChangeModesOperation
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 ChangeModesOperation : Operation, IEquatable<BaseEvent>, IOperation, IEvent
Constructors
| Improve this Doc View SourceChangeModesOperation(UInt32, FightMode, ChaseMode, Boolean)
Initializes a new instance of the ChangeModesOperation class.
Declaration
public ChangeModesOperation(uint requestorId, FightMode fightMode, ChaseMode chaseMode, bool safeModeOn)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | requestorId | The id of the creature setting the modes. |
FightMode | fightMode | The fight mode to set. |
ChaseMode | chaseMode | The chase mode to set. |
System.Boolean | safeModeOn | A value indicating whether the safety mode is on. |
Properties
| Improve this Doc View SourceChaseMode
Gets the chase mode to set.
Declaration
public ChaseMode ChaseMode { get; }
Property Value
Type | Description |
---|---|
ChaseMode |
FightMode
Gets the fight mode to set.
Declaration
public FightMode FightMode { get; }
Property Value
Type | Description |
---|---|
FightMode |
IsSafeModeOn
Gets a value indicating whether the safety mode should be set to on.
Declaration
public bool IsSafeModeOn { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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>