ORK Framework  2.25.2
API Documentation
ORKFramework.Range Class Reference
Inheritance diagram for ORKFramework.Range:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 Range (float range)
 
 Range (float range, bool ignoreHeightDistance, bool ignoreRadius, float threshold)
 
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
float GetRange (Combatant combatant)
 
Range GetInRange ()
 
Range GetOutOfRange ()
 
Vector3 GetAngledPosition (Combatant combatant, float angle, bool localSpace, HorizontalPlaneType horizontalPlane)
 
bool InRange (Combatant combatant, Combatant target)
 
bool InRange (Vector3 position, Combatant combatant)
 
bool InRange (Vector3 position, Combatant combatant, float range)
 
bool OutOfRange (Combatant combatant, Combatant target)
 
bool OutOfRange (Vector3 position, Combatant combatant)
 
bool OutOfRange (Vector3 position, Combatant combatant, float range)
 
void CheckInRangeStatus (Combatant combatant, Combatant target, ref bool inRangeStatus)
 
- 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...
 

Static Public Member Functions

static float Distance (Combatant user, Combatant target, bool ignoreHeightDistance, bool ignoreRadius)
 

Public Attributes

float range = 5
 
float threshold = 0
 
bool ignoreHeightDistance = true
 
bool ignoreRadius = false
 

Static Public Attributes

static Range Infinity = new Range(Mathf.Infinity)
 

Properties

static RangeBattle [get]
 

Member Function Documentation

◆ SetData()

override void ORKFramework.Range.SetData ( DataObject  data)
virtual

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.