Versions in this module Expand all Collapse all v0 v0.4.0 May 23, 2024 Changes in this version + func FindFirstWalkable(from data.Position, areaOriginPos data.Position, grid [][]bool, radius int) (int, int) + func IsWalkable(pos data.Position, areaOriginPos data.Position, collisionGrid [][]bool) bool + type PathFinder struct + func NewPathFinder(gr *game.MemoryReader, hid *game.HID, cfg *config.CharacterCfg) *PathFinder + func (pf *PathFinder) GameCoordsToScreenCords(playerX, playerY, destinationX, destinationY int) (int, int) + func (pf *PathFinder) GetClosestWalkablePath(d game.Data, dest data.Position, blacklistedCoords ...[2]int) (path *Pather, distance int, found bool) + func (pf *PathFinder) GetPath(d game.Data, to data.Position, blacklistedCoords ...[2]int) (path *Pather, distance int, found bool) + func (pf *PathFinder) MoveCharacter(d game.Data, x, y int) + func (pf *PathFinder) MoveThroughPath(d game.Data, p *Pather, distance int) + func (pf *PathFinder) RandomMovement() type Tile + Cost float64 + Walkable bool type World + World [][]*Tile + func (w *World) SetFrom(position data.Position) + func (w *World) SetTo(position data.Position) v0.4.0-beta7 May 20, 2024 v0.4.0-beta6 May 1, 2024 v0.4.0-beta5 Mar 27, 2024 v0.4.0-beta4 Mar 24, 2024 v0.4.0-beta3 Mar 21, 2024 v0.4.0-beta2 Mar 13, 2024 v0.4.0-beta1 Feb 19, 2024 v0.3.3 Jan 19, 2024 v0.3.2 Nov 24, 2023 v0.3.1 Oct 24, 2023 v0.3.0 Oct 21, 2023 Changes in this version + func IsNarrowMap(a area.Area) bool type Pather + func (p *Pather) Intersects(d data.Data, position data.Position, padding int) bool v0.2.0 May 19, 2023 v0.1.0 May 8, 2023 v0.0.1 Apr 12, 2023 Changes in this version + const KindBlocker + const KindFrom + const KindPlain + const KindSoftBlocker + const KindTo + var KindCosts = map[uint8]float64 + func DistanceFromMe(d data.Data, p data.Position) int + func DistanceFromPoint(from data.Position, to data.Position) int + func GameCoordsToScreenCords(playerX, playerY, destinationX, destinationY int) (int, int) + func MoveThroughPath(p *Pather, distance int, teleport bool) + func RandomMovement() + type AstarPather []astar.Pather + type Pather struct + Destination data.Position + func GetClosestWalkablePath(d data.Data, dest data.Position, blacklistedCoords ...[2]int) (path *Pather, distance float64, found bool) + func GetPath(d data.Data, to data.Position, blacklistedCoords ...[2]int) (path *Pather, distance float64, found bool) + func (p *Pather) Distance() int + type Tile struct + Kind uint8 + W World + X int + Y int + func (t *Tile) PathEstimatedCost(to astar.Pather) float64 + func (t *Tile) PathNeighborCost(to astar.Pather) float64 + func (t *Tile) PathNeighbors() []astar.Pather + type World [][]*Tile + func (w World) FirstOfKind(kind uint8) *Tile + func (w World) From() *Tile + func (w World) NewTile(kind uint8, x, y int) *Tile + func (w World) SetTile(t *Tile) + func (w World) Tile(x, y int) *Tile + func (w World) To() *Tile