Show / Hide Table of Contents

    Class StatChangeOperation

    Class that represents an operation to regenerate a particular stat over time.

    Inheritance
    System.Object
    Priority_Queue.FastPriorityQueueNode
    Priority_Queue.StablePriorityQueueNode
    BaseEvent
    Operation
    StatChangeOperation
    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 StatChangeOperation : Operation, IEquatable<BaseEvent>, IOperation, IEvent

    Constructors

    | Improve this Doc View Source

    StatChangeOperation(ICreature, CreatureStat, Int32)

    Initializes a new instance of the StatChangeOperation class.

    Declaration
    public StatChangeOperation(ICreature creature, CreatureStat statId, int amount = 1)
    Parameters
    Type Name Description
    ICreature creature

    The creature for which the stat is being changed.

    CreatureStat statId

    The id of the stat to change.

    System.Int32 amount

    Optional. The amount of points to change.

    Properties

    | Improve this Doc View Source

    Amount

    Gets the amount of points to change the stat by.

    Declaration
    public int Amount { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Creature

    Gets the creature for which the stat is being changed.

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

    StatId

    Gets the type of stat to change.

    Declaration
    public CreatureStat StatId { get; }
    Property Value
    Type Description
    CreatureStat

    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.