ORK Framework  2.23.0
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)
 
bool Detect (Combatant combatant, Combatant 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 waypointSpeed = 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 useIdle = false
 
bool idleRandom = false
 
IdleBehaviour[] idleBehaviour
 
bool followLeader = 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
 
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()
 

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

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.