cmd

package
v0.0.0-...-223f09d Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2022 Jacob Saporito

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Coordinate

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

type Directory

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

func (Directory) Children

func (d Directory) Children() map[string]*WeightedNode

func (Directory) Name

func (d Directory) Name() string

func (Directory) Weight

func (d Directory) Weight() int

type File

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

func (File) Children

func (f File) Children() map[string]*WeightedNode

func (File) Name

func (f File) Name() string

func (File) Weight

func (f File) Weight() int

type HeightMap

type HeightMap rudolph.AStarMap[rune]

func (*HeightMap) Get

func (hMap *HeightMap) Get(coords rudolph.Coordinate) *rudolph.MapNode[rune]

func (*HeightMap) GetConnectedNodes

func (hMap *HeightMap) GetConnectedNodes(src rudolph.Coordinate) []rudolph.Coordinate

func (*HeightMap) GetMap

func (hMap *HeightMap) GetMap() [][]*rudolph.MapNode[rune]

func (*HeightMap) Heuristic

func (hMap *HeightMap) Heuristic(src, dst rudolph.Coordinate) int

func (*HeightMap) SetMap

func (hMap *HeightMap) SetMap(m [][]*rudolph.MapNode[rune])

func (*HeightMap) TravelCost

func (hMap *HeightMap) TravelCost(src, dst rudolph.Coordinate) int

type Monkey

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

type WeightedNode

type WeightedNode interface {
	Name() string
	Weight() int
	Children() map[string]*WeightedNode
}

Jump to

Keyboard shortcuts

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