Click or drag to resize
CapabilityManager Class

This manager allows multiple sources to disallow a CombatRoutine capability for specific time or until a condition evaluates

to false and once no sources are disallowing a capability, that capability is then allowed

Inheritance Hierarchy
SystemObject
  Styx.CommonBot.RoutinesCapabilityManager

Namespace: Styx.CommonBot.Routines
Assembly: Styx (in Styx.dll) Version: 3.0.1160.0 (3.0.1160)
Syntax
C#
public class CapabilityManager

The CapabilityManager type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInstance
Gets the instance.
Top
Methods
  NameDescription
Public methodAdd(CapabilityFlags, FuncBoolean, String)

Adds a new entry that disallows capability until

condition evaluates to false, at which

point the entry is removed and capability is allowed if

no other entries for capability are maintained.

Public methodAdd(CapabilityFlags, Int32, String)

Adds a new entry that disallows capability for

timeSpanMs duration in milliseconds, at which point the entry is removed and

capability is allowed if no other entries for capability are maintained.

Public methodAdd(CapabilityFlags, TimeSpan, String)

Adds a new entry that disallows capability for

timeSpan duration, at which

point the entry is removed and capability is allowed if

no other entries for capability are maintained.

Public methodClear(CapabilityFlags, String)
Clears all the entries that matches any of capabilities.
Public methodClear(CapabilityManagerHandle, CapabilityFlags, String)

Clears all the entries that matches any of capabilities

and are associated with handle or all matching entries if handle is null.

Public methodCreateNewHandle
Creates a new handle that can be used to add or update an entry
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPulse
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(CapabilityManagerHandle, CapabilityFlags, FuncBoolean, String)

Updates an entry (or adds a new one if entry is not present) to disallow

capability until condition evaluates

to false, at which point the entry is removed and capability

is allowed if no other entries for capability are maintained.

Public methodUpdate(CapabilityManagerHandle, CapabilityFlags, Int32, String)

Updates an entry (or adds a new one if entry is not present) to disallow capability for

timeSpanMs duration in milliseconds. The entry is removed upon expiration and

capability is allowed if no other entries for capability are maintained.

Public methodUpdate(CapabilityManagerHandle, CapabilityFlags, TimeSpan, String)

Updates an entry (or adds a new one if entry is not present) to disallow capability for

timeSpan duration. The entry is removed upon expiration

and capability is allowed if

no other entries for capability are maintained.

Top
See Also