ORK Framework  2.22.0
API Documentation
ORKFramework.BaseAction Class Referenceabstract
Inheritance diagram for ORKFramework.BaseAction:
ORKFramework.Events.IEventStarter ORKFramework.ChangeMemberAction ORKFramework.DamageDealerAction ORKFramework.DeathAction ORKFramework.DefendAction ORKFramework.EscapeAction ORKFramework.GridMoveAction ORKFramework.JoinBattleAction ORKFramework.NoneAction ORKFramework.TargetRangeAction

Public Member Functions

abstract bool IsType (ActionType t)
 
virtual string GetName ()
 
void CheckActionAffiliation ()
 
virtual void SetTarget (Combatant t)
 
virtual void SetTargets (List< Combatant > t)
 
virtual bool AutoTarget (List< Combatant > preferredTargets, List< Combatant > allies, List< Combatant > enemies)
 
virtual bool ForceFoundTargets (List< Combatant > preferredTargets, List< Combatant > allies, List< Combatant > enemies)
 
virtual bool SetGroupTarget ()
 
virtual bool SetIndividualTarget ()
 
virtual void ConsumeCosts ()
 
virtual bool CanTarget (Combatant combatant)
 
virtual bool IsCasting ()
 
virtual bool CanCancelCasting ()
 
virtual bool CancelCasting ()
 
virtual void SetRandomTarget ()
 
void UpdateTargets ()
 
void PerformCheckTargets ()
 
virtual bool TargetNone ()
 
bool HasTargets ()
 
bool HasTargets (List< Combatant > list)
 
bool HasOutOfRangeTargets ()
 
Combatant GetNearestTarget ()
 
void CheckTargetAggressive ()
 
void CheckBestiary (List< Combatant > list)
 
List< CombatantGetTargetsWithAffectRange (AffectRangeType type, TargetSettings targetSettings, List< Combatant > targets)
 
void CheckCanTarget ()
 
bool InRange ()
 
virtual bool InRange (Combatant t)
 
virtual bool InRange (Vector3 position)
 
bool InBattleRange ()
 
void MoveAITick ()
 
virtual System.Object GetSelectedData ()
 
virtual bool CanUse ()
 
virtual void ActionAdded ()
 
virtual void PerformAction ()
 
abstract void Calculate (List< Combatant > ts, float damageFactor, bool animate)
 
virtual void EventEnded ()
 
void StopAction ()
 
void ClearEvents ()
 
void Tick ()
 
void DontDestroy ()
 
void OnSceneLoaded ()
 
virtual void AutoActivateUserDamageDealers (bool activate)
 
virtual bool CheckDamageDealer (DamageDealer dealer)
 
virtual string[] GetActivationTags ()
 
virtual DamageDealerActivation GetDamageDealerActivation ()
 
void AddSubAction (BaseAction action, bool shareVariables, bool shareFoundObjects)
 
void SubActionFinished (BaseAction action)
 
void ShowTooltip ()
 
void RemoveTooltip ()
 

Static Public Member Functions

static AbilityAction CreateAbility (Combatant user, AbilityShortcut ability, int lvl)
 

Public Attributes

bool forceFoundTargets = false
 
bool moveToTarget = false
 
bool blockBattleCamera = false
 
List< Combatanttarget
 
List< CombatantoutOfRange
 
List< Combatantcounter = new List<Combatant>()
 
ActionResults results
 
ActionFinished finishedCallback
 
ActionFinished subActionFinishedCallback
 
bool autoAttackFlag = false
 
bool isPerforming = false
 
bool notifiedFinished = false
 
bool endPhaseFlag = false
 
TargetRaycast targetRaycast = new TargetRaycast()
 
bool rayTargetSet = false
 
Vector3 rayPoint = Vector3.zero
 
bool rayObjectCreated = false
 
GameObject rayObject = null
 
float damageMultiplier = 1
 

Protected Member Functions

virtual void CreateStatusChangeInfos ()
 
void GetNextEvent ()
 
abstract void ActionStartSetup ()
 
abstract void ActionEndSetup ()
 

Protected Attributes

Combatant user
 
GridPath gridPath
 
Dictionary< Combatant, StatusChangeInformationstatusChangesTarget
 
float castTime = -2
 
float castTimeMax = -1
 
bool castMove = true
 
bool isCasted = false
 
List< BattleEventevents
 
BattleEvent activeEvent
 
VariableHandler variableHandler
 
SelectedDataHandler selectedData
 
Dictionary< string, List< GameObject > > foundObjects
 
List< BaseActionsubAction
 
bool userConsumeDone = false
 
Consider targetDead = Consider.No
 
bool consumeTime = true
 
float actionCost = 0
 
bool tooltipDisplayed = false
 

Properties

Combatant User [get]
 
virtual IShortcut Shortcut [get]
 
float ActionCost [get]
 
bool ConsumeTime [get, set]
 
GridPath GridPath [get, set]
 
CombatantAffiliationType ActionAffiliation [get]
 
virtual bool ConsumeDone [get, set]
 
VariableHandler Variables [get, set]
 
SelectedDataHandler SelectedData [get, set]
 
Dictionary< string, List< GameObject > > FoundObjects [get, set]
 
Consider TargetDead [get]
 
virtual float CastTime [get, set]
 
virtual float CastTimeMax [get]
 
virtual bool CastMove [get]
 
virtual bool IsCasted [get, set]
 
GameObject GameObject [get]
 
- Properties inherited from ORKFramework.Events.IEventStarter
GameObject GameObject [get]