Show / Hide Table of Contents

    Class ChangeModesOperation

    Class that represents a change modes operation.

    Inheritance
    System.Object
    Priority_Queue.FastPriorityQueueNode
    Priority_Queue.StablePriorityQueueNode
    BaseEvent
    Operation
    ChangeModesOperation
    Implements
    System.IEquatable<BaseEvent>
    IOperation
    IEvent
    Inherited Members
    Operation.CanBeCancelled
    Operation.AssociatedExhaustion
    Operation.GetRequestor(ICreatureFinder)
    Operation.Execute(IEventContext)
    Operation.AddContentToContainerOrFallback(IOperationContext, IThingContainer, IThing, Byte, Boolean, ICreature)
    Operation.DispatchTextNotification(IOperationContext, String)
    Operation.SendNotification(IOperationContext, INotification)
    BaseEvent.Cancelled
    BaseEvent.Expedited
    BaseEvent.Completed
    BaseEvent.EventId
    BaseEvent.RequestorId
    BaseEvent.RepeatAfter
    BaseEvent.HasCancellationHandler
    BaseEvent.HasExpeditionHandler
    BaseEvent.ExcludeFromTelemetry
    BaseEvent.State
    BaseEvent.Cancel()
    BaseEvent.Expedite()
    BaseEvent.Complete(Boolean)
    BaseEvent.Equals(BaseEvent)
    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 Source

    ChangeModesOperation(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 Source

    ChaseMode

    Gets the chase mode to set.

    Declaration
    public ChaseMode ChaseMode { get; }
    Property Value
    Type Description
    ChaseMode
    | Improve this Doc View Source

    FightMode

    Gets the fight mode to set.

    Declaration
    public FightMode FightMode { get; }
    Property Value
    Type Description
    FightMode
    | Improve this Doc View Source

    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 Source

    Execute(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
    Operation.Execute(IOperationContext)

    Implements

    System.IEquatable<T>
    IOperation
    IEvent

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.