Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AStarFinder ¶
type AStarFinder struct {
// contains filtered or unexported fields
}
AStarFinder A* algorighm
func (*AStarFinder) Find ¶
func (asf *AStarFinder) Find(fromX, fromY, toX, toY int32) []*Point
Find calculate road from start grid to end grid
func (*AStarFinder) SetWalkableChecker ¶
func (asf *AStarFinder) SetWalkableChecker(f func(x, y int32) bool)
SetWalkableChecker grid walkable callback
Click to show internal directories.
Click to hide internal directories.