helper

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanTeleport added in v0.3.0

func CanTeleport(d data.Data) bool

func RandRng

func RandRng(min, max int) int

func RandomDurationMs

func RandomDurationMs(min, max int) time.Duration

func Screenshot

func Screenshot() image.Image

func Sleep

func Sleep(milliseconds int)

Sleep provides a Sleep function that randomize the sleep time up/down to a maximum of 30%

func Spiral

func Spiral(position int) (int, int)

Types

type GameManager

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

func NewGameManager

func NewGameManager(gr *reader.GameReader, tf *ui.TemplateFinder) *GameManager

func (*GameManager) CreateOnlineGame

func (gm *GameManager) CreateOnlineGame(gameCounter int) (string, error)

func (*GameManager) ExitGame

func (gm *GameManager) ExitGame() error

func (*GameManager) InGame added in v0.2.0

func (gm *GameManager) InGame() bool

func (*GameManager) JoinOnlineGame

func (gm *GameManager) JoinOnlineGame(gameName, password string) error

func (*GameManager) NewGame

func (gm *GameManager) NewGame() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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