ORK Framework  2.22.0
API Documentation
ORKFramework.AI.AIRuleset Class Reference
Inheritance diagram for ORKFramework.AI.AIRuleset:
ORKFramework.BaseLanguageData ORKFramework.IContent ORKFramework.BaseIndexData ORKFramework.IContentSimple ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 AIRuleset (string name)
 
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
GameObject GetPrefabInstance ()
 
bool CanEquip (Combatant user)
 
bool CheckRequirements (Combatant user)
 
bool CheckTargetRequirements (Combatant user, List< Combatant > allies, List< Combatant > enemies)
 
BaseAction GetAction (BattleAICall call)
 
bool ChangeMoveAI (Combatant user)
 
bool SetActionTargets (BaseAction action, Combatant user, List< Combatant > allies, List< Combatant > enemies)
 
bool CanUseAbility (Combatant user, int abilityID)
 
bool CanUseAttack (Combatant user)
 
bool CanUseCounterAttack (Combatant user)
 
bool CanUseItem (Combatant user, int itemID)
 
string GetName ()
 
string GetDescription ()
 
string GetIconTextCode ()
 
Texture GetIcon ()
 
GUIContent GetContent ()
 
IContentSimple GetTypeContent ()
 
string GetInfo (Combatant c)
 
IPortrait GetPortrait (int typeID)
 
- Public Member Functions inherited from ORKFramework.BaseLanguageData
 BaseLanguageData (string name)
 
- 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

int typeID = 0
 
bool useQuantity = false
 
GameObject prefab
 
Vector3 spawnOffset = Vector3.zero
 
float sympathyChange = 0
 
FloatValue chanceValue = new FloatValue(100)
 
PriceSettings price = new PriceSettings()
 
bool moveAIChangeOnUse = false
 
MoveAIChange moveAIChange = new MoveAIChange()
 
bool singleEquip = true
 
bool useEquipRequirements = false
 
bool autoUnequip = false
 
SimpleCombatantRequirement equipRequirement
 
bool useUserRequirements = false
 
SimpleCombatantRequirement userRequirement
 
bool ownNotifications = false
 
AINotification addedNotification
 
AINotification removedNotification
 
bool ownConsoleAdd = false
 
ConsoleTextAI consoleAdd
 
bool ownConsoleRemove = false
 
ConsoleTextAI consoleRemove
 
TypePrefabViewPortrait[] portrait = new TypePrefabViewPortrait[0]
 
AIRule[] rule = new AIRule[0]
 
- Public Attributes inherited from ORKFramework.BaseLanguageData
LanguageInfo[] languageInfo
 

Properties

int ID [get]
 
int TypeID [get]
 
int ItemTypeID [get]
 
- Properties inherited from ORKFramework.BaseIndexData
virtual int RealID [get, set]
 
- Properties inherited from ORKFramework.IContent
int TypeID [get]
 
- Properties inherited from ORKFramework.IContentSimple
int ID [get]
 

Additional Inherited Members

- Protected Attributes inherited from ORKFramework.BaseIndexData
int realID = 0
 

Member Function Documentation

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.