cmd

package
v0.0.0-...-80b9a8d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaitKey string

BaitKey where bait is binded

View Source
var Debug bool

Debug for better logging

View Source
var DebugLogger *log.Logger

DebugLogger for fishcraft

View Source
var ErrorLogger *log.Logger

ErrorLogger for fishcraft

View Source
var InfoLogger *log.Logger

InfoLogger for fishcraft

Key binding of fishing spell

View Source
var NotFound int

NotFound for number of times

View Source
var Threshold int

Threshold to detect bobber movement

Functions

func ApplyBait

func ApplyBait()

ApplyBait if a keybind is defined

func Fish

func Fish(finder BobberFinder)

Fish inside World of Warcraft

func Main

func Main()

Main for fishcraft app

Types

type BaitDetector

type BaitDetector interface {
	CheckBait(position *image.Point) bool
}

BaitDetector to find the bait

func CreateBaitDetector

func CreateBaitDetector() BaitDetector

CreateBaitDetector create the detector

type BaitDetectorImpl

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

BaitDetectorImpl Implementor

func (*BaitDetectorImpl) CheckBait

func (bait *BaitDetectorImpl) CheckBait(position *image.Point) bool

CheckBait if movement

type BobberFinder

type BobberFinder interface {
	FindBobber(screen *robotgo.CBitmap, knownPosition *image.Point) *image.Point
}

BobberFinder that detect

func CreateBobberFinder

func CreateBobberFinder() BobberFinder

CreateBobberFinder that detects the bobber

type Config

type Config struct {
	Bait      string `yaml:"bait"`
	Debug     bool   `yaml:"debug"`
	Key       string `yaml:"key"`
	LogPath   string `yaml:"log"`
	Threshold int    `yaml:"threshold"`
}

Config to use

func (*Config) GetConfig

func (c *Config) GetConfig(config string) *Config

GetConfig of user

Jump to

Keyboard shortcuts

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