module GSF::Path

Defined in:

gsf/path.cr

Class Method Summary

Class Method Detail

def self.collides?(tiles : Tiles, row : Int32, col : Int32) : Bool #

[View source]
def self.distance_score(a : Cell, b : Cell) : Int32 #

[View source]
def self.find(entity : Cell, target : Cell, tiles : Tiles) : Cells | Nil #

uses A* path finding algorithm entity size must be <= tile cell size


[View source]