ORK Framework  2.24.0
API Documentation
ORKFramework.GridPathFinder Class Reference

Public Member Functions

 GridPathFinder (bool keepBlockedCells)
 
 GridPathFinder (bool keepBlockedCells, bool blockTargetDiagonalDistance1)
 
void Clear ()
 
void SetConsiderGridFormation (bool consider, ConsiderFormationCombatants checkCombatants, bool checkReachable, bool sameCellType)
 
List< CombatantGetCombatantsOnPath (BattleGridCellComponent toCell)
 
void GetCombatantsOnPath (BattleGridCellComponent toCell, ref List< Combatant > list)
 
bool IsMarkedForAI (BattleGridCellComponent cell)
 
bool CheckCosts (BattleGridCellComponent toCell)
 
float GetMoveCost (BattleGridCellComponent toCell)
 
float GetActionCost (BattleGridCellComponent toCell)
 
List< BattleGridCellComponentGetPath (BattleGridCellComponent toCell)
 
void GetPath (BattleGridCellComponent toCell, ref List< BattleGridCellComponent > path)
 
int GetPathDirection (BattleGridCellComponent toCell)
 
BattleGridCellComponent GetLastReachablePathCell (BattleGridCellComponent toCell, bool directMoveOnly, ref bool canReach, BattleGridCellComponent targetCell, List< BattleGridCellComponent > ignoreCells, List< BattleGridCellComponent > allowCells, GridCellCheck check)
 
BattleGridCellComponent GetMostDistantCell (BattleGridCellComponent fromCell, GridCellCheck check)
 
GridMoveAction GetMoveAction (BattleGridCellComponent toCell, GridMoveShortcut gridMoveShortcut, Combatant target)
 
bool CheckCell (BattleGridCellComponent cell)
 
bool CheckCellOccupant (Combatant combatant)
 
bool CheckCellUse (BattleGridCellComponent cell)
 
void CreateMoveRange (Combatant user, MoveRangeType moveRangeType, List< BattleGridCellComponent > ignoreCells, List< BattleGridCellComponent > allowCells)
 
void UsePathCell (BattleGridCellComponent cell, int direction)
 
void CreatePathTo (Combatant user, BattleGridCellComponent toCell)
 
void UseCreatePathCell (BattleGridCellComponent cell, int direction)
 

Static Public Member Functions

static bool CanReach (Combatant combatant, BattleGridCellComponent cell, bool keepBlockedCells, bool ignoreFormationCombatants, MoveRangeType moveRangeType, List< BattleGridCellComponent > ignoreCells, List< BattleGridCellComponent > allowCells)
 

Public Attributes

BattleGridCellComponent startCell
 
List< BattleGridCellComponentavailableTargets
 
List< BattleGridCellComponentblockedCells
 
List< BattleGridCellComponentpassableCells
 

Properties

bool MoveRangeCreated [get]
 
bool IgnoreBlockingCombatants [get, set]
 
bool IgnoreFormationCombatants [get, set]
 
bool NoMoveOver [get, set]