ORK Framework  2.23.0
API Documentation
ORKFramework.IGridHelper Interface Reference
Inheritance diagram for ORKFramework.IGridHelper:
ORKFramework.HexagonalGridHelper ORKFramework.SquareGridHelper

Public Member Functions

CubeCoord GetDirection (int direction)
 
CubeCoord GetDirectionNonDiagonal (int direction)
 
int AngleToDirection (float angle, bool allowSquareDiagonal)
 
float DirectionToAngle (int direction, bool allowSquareDiagonal)
 
float GetNeighbourAngle ()
 
float GetNeighbourAngleOffset ()
 
BattleGridCellComponent GetNeighbourCell (BattleGridCellComponent cell, int index)
 
bool IsNeighbourCell (BattleGridCellComponent origin, BattleGridCellComponent cell, bool allowSquareDiagonal, GridCellCheck check)
 
void UsePathNeighbourCells (BattleGridCellComponent origin, UsePathCell useCell, bool allowSquareDiagonal, GridCellCheck check, GridCellCheck checkDiagonal)
 
void UsePathNeighbourCells (BattleGridCellComponent origin, UsePathCell useCell, ref List< BattleGridCellComponent > blockedList, bool allowSquareDiagonal, bool blockedOccupied, GridCellCheck check, GridCellCheck checkDiagonal)
 
void GetRange (BattleGridCellComponent origin, int minDistance, int maxDistance, ref List< BattleGridCellComponent > list, ref HashSet< BattleGridCellComponent > contains, bool addOrigin, bool addBlocked, bool addNotPassable, bool allowSquareDiagonal, GridCellCheck check)
 
void GetRange (Combatant user, int minDistance, int maxDistance, ref List< BattleGridCellComponent > list, ref HashSet< BattleGridCellComponent > contains, bool allowSquareDiagonal, GridCellOriginCheck check)
 
void GetRangeCombatants (BattleGridCellComponent origin, int minDistance, int maxDistance, ref List< Combatant > list, bool addOrigin, bool addBlocked, bool addNotPassable, bool allowSquareDiagonal, GridCellCheck check)
 
void GetRangeCombatants (Combatant user, int minDistance, int maxDistance, ref List< Combatant > list, bool allowSquareDiagonal, GridCellOriginCheck check)
 
bool CheckRange (BattleGridCellComponent origin, int minDistance, int maxDistance, bool addOrigin, bool addBlocked, bool addNotPassable, bool allowSquareDiagonal, GridCellCheck check)
 
void GetRing (BattleGridCellComponent center, int radius, ref List< BattleGridCellComponent > list, ref HashSet< BattleGridCellComponent > contains, bool addOrigin, bool addBlocked, bool addNotPassable, bool allowSquareDiagonal, GridCellCheck check)
 
void GetRingCombatants (BattleGridCellComponent center, int radius, ref List< Combatant > list, bool addOrigin, bool addBlocked, bool addNotPassable, bool allowSquareDiagonal, GridCellCheck check)
 
bool CheckRing (BattleGridCellComponent center, int radius, bool addOrigin, bool addBlocked, bool addNotPassable, bool allowSquareDiagonal, GridCellCheck check)
 
void GetLine (BattleGridCellComponent origin, BattleGridCellComponent target, ref List< BattleGridCellComponent > list, ref HashSet< BattleGridCellComponent > contains, bool ignoreBlocked)
 
bool CheckLineOfSight (Combatant user, BattleGridCellComponent origin, BattleGridCellComponent target, GridCellOriginCheck blockLOS, float cellArea)
 
CubeCoord Rotate (CubeCoord origin, int turns)
 
int Distance (CubeCoord origin, CubeCoord target)
 
int Distance (CubeCoord origin, CubeCoord target, bool blockDiagonalDistance1)