tilearea4pathfind

package
v0.0.0-...-d7572e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PFAreaI

type PFAreaI interface {
	GetXYLen() (int, int)
	GetTiles() tilearea.TileArea
}

type TileArea4PathFind

type TileArea4PathFind struct {
	// contains filtered or unexported fields
}

func New

func New(tr PFAreaI) *TileArea4PathFind

func (*TileArea4PathFind) Cleanup

func (ta4pf *TileArea4PathFind) Cleanup()

func (*TileArea4PathFind) FindPath

func (ta4pf *TileArea4PathFind) FindPath(dstx, dsty, srcx, srcy int, trylimit int) [][2]int

func (*TileArea4PathFind) String

func (ta4pf *TileArea4PathFind) String() string

func (*TileArea4PathFind) WrapXY

func (ta4pf *TileArea4PathFind) WrapXY(x, y int) (int, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL