ORK Framework  3.17.0
API Documentation
GamingIsLove.ORKFramework.ActionAccessHandler Class Reference

Public Member Functions

virtual void AddActionToCombatant (Combatant user, BaseAction action, bool newTurn)
 Adds a battle action to a combatant, and after checks adding it to the battle system's action handler. More...
 
virtual void Choose (Combatant combatant, bool newTurn, bool autoCallMenu)
 Starts a combatant's action selection. For the player, this'll bring up the battle menu (if used), for AI controlled combatants it'll use the battle AI. More...
 
virtual void ChooseAuto (Combatant combatant, bool newTurn)
 Starts a combatant's auto action selection (using battle AI). More...
 
virtual void AddActionToBattle (BaseAction action)
 Adds a battle action to the battle system's action handler. More...
 
virtual void UnshiftActionToBattle (BaseAction action)
 Adds a battle action to the battle system's action handler as the next action that will be performed. More...
 
virtual bool UseShortcut (IShortcut shortcut, Combatant user, List< Combatant > targets, bool useAction)
 Calls the 'Use' function of an IShortcut implementation. More...
 
virtual void SpendExperience (Combatant user, ILevelUpSpend levelUp)
 Spends experience points on something that can be leveled up (e.g. an ability). More...
 
virtual void UseItem (ItemShortcut item, Combatant user, List< Combatant > target, GameObject flyingTextTargetObject, bool fromAction, bool doConsume, float damageFactor, float damageMultiplier, ActionCalculationOptions calculationOptions, VariableHandler localVariables, SelectedDataHandler selectedData, ActionCalculationFinished notify, ItemAction action)
 
virtual void UseAbility (AbilityShortcut ability, Combatant user, List< Combatant > target, GameObject flyingTextTargetObject, bool fromAction, bool doCounter, bool doUseCosts, float damageFactor, float damageMultiplier, ActionCalculationOptions calculationOptions, VariableHandler localVariables, SelectedDataHandler selectedData, ActionCalculationFinished notify, AbilityAction action)
 
virtual void CancelCast (Combatant combatant)
 Cancels casting an action on a combatant. More...
 

Member Function Documentation

◆ AddActionToBattle()

virtual void GamingIsLove.ORKFramework.ActionAccessHandler.AddActionToBattle ( BaseAction  action)
virtual

Adds a battle action to the battle system's action handler.

Parameters
actionThe battle action that will be added.

◆ AddActionToCombatant()

virtual void GamingIsLove.ORKFramework.ActionAccessHandler.AddActionToCombatant ( Combatant  user,
BaseAction  action,
bool  newTurn 
)
virtual

Adds a battle action to a combatant, and after checks adding it to the battle system's action handler.

Parameters
userThe user combatant the action will be added to.
actionThe battle action that will be added.
newTurntrue if the user should start a new turn (action fails if a new turn can't be started).

◆ CancelCast()

virtual void GamingIsLove.ORKFramework.ActionAccessHandler.CancelCast ( Combatant  combatant)
virtual

Cancels casting an action on a combatant.

Parameters
combatantThe combatant that cancel's casting an action.

◆ Choose()

virtual void GamingIsLove.ORKFramework.ActionAccessHandler.Choose ( Combatant  combatant,
bool  newTurn,
bool  autoCallMenu 
)
virtual

Starts a combatant's action selection. For the player, this'll bring up the battle menu (if used), for AI controlled combatants it'll use the battle AI.

Parameters
combatantThe combatant selecting actions.
newTurntrue if the combatant should start a new turn.
autoCallMenutrue if the battle menu should be called automatically.

◆ ChooseAuto()

virtual void GamingIsLove.ORKFramework.ActionAccessHandler.ChooseAuto ( Combatant  combatant,
bool  newTurn 
)
virtual

Starts a combatant's auto action selection (using battle AI).

Parameters
combatantThe combatant selecting actions.
newTurntrue if the combatant should start a new turn.

◆ SpendExperience()

virtual void GamingIsLove.ORKFramework.ActionAccessHandler.SpendExperience ( Combatant  user,
ILevelUpSpend  levelUp 
)
virtual

Spends experience points on something that can be leveled up (e.g. an ability).

Parameters
userThe combatant that spends the experience.
levelUpThe content that will level up.

◆ UnshiftActionToBattle()

virtual void GamingIsLove.ORKFramework.ActionAccessHandler.UnshiftActionToBattle ( BaseAction  action)
virtual

Adds a battle action to the battle system's action handler as the next action that will be performed.

Parameters
actionThe battle action that will be added.

◆ UseShortcut()

virtual bool GamingIsLove.ORKFramework.ActionAccessHandler.UseShortcut ( IShortcut  shortcut,
Combatant  user,
List< Combatant targets,
bool  useAction 
)
virtual

Calls the 'Use' function of an IShortcut implementation.

Parameters
shortcutThe shortcut that will be used.
userThe user combatant.
targetsThe target combatants.
useActiontrue if a battle action will be used to animate the use/action.
Returns
true if the shortcut was used.