Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Managers.RoutineManager Class Reference

Static Public Member Functions

static CapabilityState GetCapabilityState (CapabilityFlags capability)
 Returns the state of a capability.
static void SetCapabilityState (CapabilityFlags capability, CapabilityState state, string reason=null)
 Sets the state of the passed in capabilities.
static bool IsAnyDisallowed (CapabilityFlags capability)
 Determines whether any of the capabilities are disallowed.
static void PickRoutine ()
 Selects an active routine The first routine with a partial match with PreferedRoutine is selected first if it is set. If there is only one match for the current class, then that is selected. If there is more then one option then a dialog is displayed.

Properties

static List< CombatRoutineAllRoutines [get]
 List of all loaded routines, including ones that don't match the players class.
static List< CombatRoutineRoutines [get]
 List of all routines that support the players class.
static string PreferedRoutine [get, set]
 Partial match against routine name during startup and switching classes Can be assigned to.
static CombatRoutine Current [get, set]
 Current combat routine Setting this will change the routine used in the botbases Calls shutdown on the previous routine and initalize on the new one.
static string RoutineDirectory [get]

Events

static EventHandler Reloaded
 Fired when routines have been reloaded.
static EventHandler PickRoutineFired
 Fired at the very start of PickRoutine Good place to set PreferedRoutine.
static EventHandler RoutineChanged
 Fired when the routine has changed.
static EventHandler< CapabilityStateChangedArgsOnCapabilityStateChanged

Member Function Documentation

◆ GetCapabilityState()

CapabilityState ff14bot.Managers.RoutineManager.GetCapabilityState ( CapabilityFlags capability)
static

Returns the state of a capability.

Parameters
capabilityThe capability. Should not have multiple flags set.
Exceptions
ArgumentOutOfRangeExceptionThrown if capability has multiple flags set.
Returns
The state of a capability.

◆ IsAnyDisallowed()

bool ff14bot.Managers.RoutineManager.IsAnyDisallowed ( CapabilityFlags capability)
static

Determines whether any of the capabilities are disallowed.

Parameters
capabilityThe capability.

◆ PickRoutine()

void ff14bot.Managers.RoutineManager.PickRoutine ( )
static

Selects an active routine The first routine with a partial match with PreferedRoutine is selected first if it is set. If there is only one match for the current class, then that is selected. If there is more then one option then a dialog is displayed.

◆ SetCapabilityState()

void ff14bot.Managers.RoutineManager.SetCapabilityState ( CapabilityFlags capability,
CapabilityState state,
string reason = null )
static

Sets the state of the passed in capabilities.

Parameters
capabilityThe capability. Should not have multiple flags set.
stateThe new state to set the capability into.
reasonThe reason.
Exceptions
ArgumentOutOfRangeExceptionThrown if capability has more than 1 flag set or state is invalid.

Property Documentation

◆ AllRoutines

List<CombatRoutine> ff14bot.Managers.RoutineManager.AllRoutines
staticget

List of all loaded routines, including ones that don't match the players class.

◆ Current

CombatRoutine ff14bot.Managers.RoutineManager.Current
staticgetset

Current combat routine Setting this will change the routine used in the botbases Calls shutdown on the previous routine and initalize on the new one.

◆ PreferedRoutine

string ff14bot.Managers.RoutineManager.PreferedRoutine
staticgetset

Partial match against routine name during startup and switching classes Can be assigned to.

◆ RoutineDirectory

string ff14bot.Managers.RoutineManager.RoutineDirectory
staticget

◆ Routines

List<CombatRoutine> ff14bot.Managers.RoutineManager.Routines
staticget

List of all routines that support the players class.

Event Documentation

◆ OnCapabilityStateChanged

EventHandler<CapabilityStateChangedArgs> ff14bot.Managers.RoutineManager.OnCapabilityStateChanged
static

◆ PickRoutineFired

EventHandler ff14bot.Managers.RoutineManager.PickRoutineFired
static

Fired at the very start of PickRoutine Good place to set PreferedRoutine.

◆ Reloaded

EventHandler ff14bot.Managers.RoutineManager.Reloaded
static

Fired when routines have been reloaded.

◆ RoutineChanged

EventHandler ff14bot.Managers.RoutineManager.RoutineChanged
static

Fired when the routine has changed.