pokemon

package
v0.0.0-...-d1122d2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cheat int
View Source
var NotFound = errors.New("not found")

Functions

func Catch

func Catch() error

Types

type Escaped

type Escaped struct {
	Pokemon Pokemon
}

func (Escaped) Error

func (c Escaped) Error() string

func (Escaped) String

func (c Escaped) String() string

type NoPokeballs

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

func (NoPokeballs) Deal

func (n NoPokeballs) Deal() bool

Deal might be offered to a players when Catch returns NoPokeballs. Call Deal() to trigger the deal. If the player accepts the deal, Deal returns true, false otherwise

func (NoPokeballs) Error

func (n NoPokeballs) Error() string

type Pokemon

type Pokemon struct {
	Number int
	Name   string
	Type   string
}

func Find

func Find(id int) (*Pokemon, error)

func (Pokemon) String

func (p Pokemon) String() string

Jump to

Keyboard shortcuts

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