Show / Hide Table of Contents

    Class BasicAttackOperation

    Class that represents the basic attack operation.

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

    Constructors

    | Improve this Doc View Source

    BasicAttackOperation(ICombatant, ICombatant, TimeSpan)

    Initializes a new instance of the BasicAttackOperation class.

    Declaration
    public BasicAttackOperation(ICombatant attacker, ICombatant target, TimeSpan exhaustionCost)
    Parameters
    Type Name Description
    ICombatant attacker

    The combatant that is attacking.

    ICombatant target

    The combatant that is the target.

    System.TimeSpan exhaustionCost

    Optional. The exhaustion cost of this operation.

    Properties

    | Improve this Doc View Source

    Attacker

    Gets the combatant that is attacking on this operation.

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

    MaximumDamage

    Gets the absolute maximum damage that the combat operation can result in.

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

    MinimumDamage

    Gets the absolute minimum damage that the combat operation can result in.

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

    Target

    Gets the combatant that is the target on this operation.

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

    TargetIdAtScheduleTime

    Gets the id of the target at schedule time.

    Declaration
    public uint TargetIdAtScheduleTime { get; }
    Property Value
    Type Description
    System.UInt32

    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.