helpers

package
v0.0.0-...-6fcfc1a Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalizeName

func CapitalizeName(name string) string

func FilterPkmn

func FilterPkmn(allPkmn *[]models.PokemonModel, callback func(models.PokemonModel) bool) *[]models.PokemonModel

func FormattedPokemonName

func FormattedPokemonName(pkmn models.PokemonModel) string

func GetRandPokemonMove

func GetRandPokemonMove(pkmn models.PokemonModel) string

func GetTypeStyle

func GetTypeStyle(pkType string) chalk.Style

func MapToString

func MapToString(pkmn []models.PokemonModel, f func(models.PokemonModel, int) string) []string

func PrintAddedToBox

func PrintAddedToBox(pkmn models.PokemonModel)

func PrintAddedToParty

func PrintAddedToParty(pkmn models.PokemonModel)

func PrintBadFilter

func PrintBadFilter()

func PrintBattle

func PrintBattle(pkmn models.PokemonModel) error

func PrintCannotDepositLastPokemon

func PrintCannotDepositLastPokemon()

func PrintCatchOrFlee

func PrintCatchOrFlee()

func PrintCaught

func PrintCaught(pkmn models.PokemonModel)

func PrintDeposited

func PrintDeposited(pkmn models.PokemonModel)

func PrintEmptyParty

func PrintEmptyParty()

func PrintEncounter

func PrintEncounter(pkmn models.PokemonModel) error

func PrintEvolved

func PrintEvolved(preEvo models.PokemonModel, evolution models.PokemonModel)

func PrintNoPokemon

func PrintNoPokemon()

func PrintNoPokemonInBox

func PrintNoPokemonInBox()

func PrintReadyToEvolve

func PrintReadyToEvolve(pkmn models.PokemonModel)

func PrintReplacedPokemon

func PrintReplacedPokemon(replaced models.PokemonModel, new models.PokemonModel)

func PrintRun

func PrintRun()

func PrintStored

func PrintStored(pkmn models.PokemonModel)

func PrintView

func PrintView(pkmn models.PokemonModel)

func PrintWildFoeFaint

func PrintWildFoeFaint(foePkmn models.PokemonModel)

Types

This section is empty.

Jump to

Keyboard shortcuts

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