Unity Grid Toolkit
Utilitary API to proceed operations on abstract grids such as tile extraction, raycasting, and pathfinding.
Loading...
Searching...
No Matches
Caskev.GridToolkit Namespace Reference

Utilitary API to proceed operations on abstract grids such as tile extraction, raycasting, and pathfinding. More...

Classes

class  DijkstraAtlas
 A DijkstraAtlas object holds DijkstraGrid objects for each tile.
More...
 
class  DijkstraField
 A DijkstraField object holds both direction and distance data between a target tile and all the tiles that are accessible to this target into a specified maximum distance range. More...
 
class  DijkstraGrid
 A DijkstraGrid object holds both direction and distance data between a target tile and all the tiles that are accessible to this target, on the entire grid. More...
 
class  DijkstraPath
 A DijkstraPath object holds both direction and distance data for all tiles on the path between two tiles.
More...
 
class  DirectionAtlas
 A DirectionAtlas object holds DirectionGrid objects for each tile.
More...
 
class  DirectionField
 A DirectionField object holds direction data between a target tile and all the tiles that are accessible to this target into a specified maximum distance range.
More...
 
class  DirectionGrid
 A DirectionGrid object holds direction data between a target tile and all the tiles that are accessible to this target, on the entire grid.
More...
 
class  DirectionPath
 A DirectionPath object holds direction data for all tiles on the path between two tiles.
More...
 
class  Extraction
 Allows you to extract tiles on a grid.
Provides shape extraction (rectangles, circles, cones and lines) and neighbors extraction with a lot of parameters. More...
 
class  GridUtils
 Some utilitary methods. More...
 
interface  ITile
 A simple tile with coordinates and walkable status. More...
 
interface  IWeightedTile
 A tile with coordinates, walkable status and weight. More...
 
class  Pathfinding
 Allows you to calculate paths between tiles.
This API offers several ways to do pathfinding, depending on your needs. More...
 
class  Raycasting
 Allows you to cast lines of sight and cones of vision on a grid. More...
 

Enumerations

enum  DiagonalsPolicy { NONE , DIAGONAL_2FREE , DIAGONAL_1FREE , ALL_DIAGONALS }
 Represents the pathfinding diagonals permissiveness.
When going diagonally from a tile A to tile B in 2D grid, there are two more tile involved, the ones that are both facing neighbours of the A and B tiles. You can allow diagonals movement depending on the walkable status of these tiles.
NONE : no diagonal movement allowed
DIAGONAL_2FREE : only diagonal movements, with two walkable facing neighbours common to the start and destination tiles, are allowed
DIAGONAL_1FREE : only diagonal movements, with one or more walkable facing neighbour common to the start and destination tiles, are allowed
ALL_DIAGONALS : all diagonal movements allowed
More...
 
enum  TileDirection : byte {
  NONE , SELF , LEFT , RIGHT ,
  DOWN , UP , UP_LEFT , UP_RIGHT ,
  DOWN_LEFT , DOWN_RIGHT
}
 An enumeration representing the possible directions to move to reach a neighboring tile.
 

Detailed Description

Utilitary API to proceed operations on abstract grids such as tile extraction, raycasting, and pathfinding.

Utilitary API to proceed operations on abstract grids such as start extraction, raycasting, and pathfinding.

Enumeration Type Documentation

◆ DiagonalsPolicy

Represents the pathfinding diagonals permissiveness.
When going diagonally from a tile A to tile B in 2D grid, there are two more tile involved, the ones that are both facing neighbours of the A and B tiles. You can allow diagonals movement depending on the walkable status of these tiles.
NONE : no diagonal movement allowed
DIAGONAL_2FREE : only diagonal movements, with two walkable facing neighbours common to the start and destination tiles, are allowed
DIAGONAL_1FREE : only diagonal movements, with one or more walkable facing neighbour common to the start and destination tiles, are allowed
ALL_DIAGONALS : all diagonal movements allowed