ORK Framework  2.30.2
API Documentation
ORKFramework.AI.MoveAISetting Class Reference
Inheritance diagram for ORKFramework.AI.MoveAISetting:
ORKFramework.BaseIndexData ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 MoveAISetting (string name)
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
ORKMoveEvent GetIdleEvent (ref int lastIndex)
bool IsDetectionEnabled ()
void DetectTargets (Combatant combatant, ref List< Combatant > targets, ref List< Combatant > detectable)
bool Detect (Combatant combatant, Combatant target)
bool IsSelectedTarget (Combatant combatant, Combatant target)
PointOfInterest GetNearestPointOfInterest (Combatant combatant, ref List< PointOfInterest > pointsOfInterest, ref HashSet< PointOfInterest > visited)
bool DetectPOI (Combatant combatant, GameObject target)
MoveAIComponent AddAIMover (Combatant combatant)
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...

Public Attributes

string name = ""
MoveAIUseMode useMode = MoveAIUseMode.Auto
HorizontalPlaneType horizontalPlane = HorizontalPlaneType.XZ
bool useMoveRange = false
Range moveRange
bool autoStop = true
float stopDistance = 0.5f
float stopTime = 0.5f
bool stopClear = false
MoveComponentType compType = MoveComponentType.Default
bool compAdd = false
string compName = ""
string compSpeedMethod = ""
string compPositionMethod = ""
string compStopMethod = ""
MoveSpeed followSpeed = new MoveSpeed(MoveSpeedType.Run, 5)
MoveSpeed giveWaySpeed = new MoveSpeed(MoveSpeedType.Walk, 5)
MoveSpeed huntingSpeed = new MoveSpeed(MoveSpeedType.Run, 5)
MoveSpeed fleeSpeed = new MoveSpeed(MoveSpeedType.Run, 5)
MoveSpeed protectionSpeed = new MoveSpeed(MoveSpeedType.Run, 5)
MoveSpeed waypointSpeed = new MoveSpeed(MoveSpeedType.Run, 5)
MoveSpeed pointOfInterestSpeed = new MoveSpeed(MoveSpeedType.Run, 5)
float waypointStopDistance = 0.1f
bool waypointIgnoreRadius = false
float waypointResetTime = 1
bool randomPatrol = false
float patrolRadius = 20.0f
bool patrolFromCurrent = false
bool usePointsOfInterest = true
string [] pointOfInterestTag = new string[0]
bool useIdle = false
bool idleRandom = false
IdleBehaviour [] idleBehaviour
bool followLeader = false
bool followNextInLine = false
bool leaderStopHunt = true
bool leaderNoWaypoint = true
Range followLeaderRange = new Range(5, true, false, 0.5f)
bool giveWay = false
Range giveWayRange = new Range(1, true, false, 0.5f)
bool autoRespawn = false
Range autoRespawnRange = new Range(50)
bool leaderPriority = false
Range leaderPriorityRange = new Range(10, true, false, 0.5f)
bool useDetection = false
bool detectOnlyLeader = false
bool detectOnDamage = false
bool detectAttackAllies = false
float detectionTimeout = 1
bool detectGroupTargets = false
int groupTargetIndex = -1
bool groupTargetInRange = false
bool detectIndividualTargets = false
int individualTargetIndex = -1
bool individualTargetInRange = false
bool selectedTargetNoDetection = false
Range detectionRange = new Range(20, true, false, 0.5f)
Needed detectionNeeded = Needed.One
MoveDetection [] detection
MoveAITargetPositionCheck targetPositionCheck = new MoveAITargetPositionCheck()
MoveAIHunting hunting = new MoveAIHunting()
MoveAIFlee flee = new MoveAIFlee()
MoveAICaution caution = new MoveAICaution()
MoveAIProtection protection = new MoveAIProtection()

Additional Inherited Members

- Protected Attributes inherited from ORKFramework.BaseIndexData
int realID = 0
- Properties inherited from ORKFramework.BaseIndexData
virtual int RealID [get, set]

Member Function Documentation

◆ SetData()

override void ORKFramework.AI.MoveAISetting.SetData ( DataObject  data)

Sets the variables of the class using a ORKFramework.DataObject.

dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.