data_objects

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveAll

func SaveAll(trainerFilePath string, trainerPartiesFilePath string, trainers []*Trainer, trainerParties []*TrainerParty) error

func SaveTrainerParties

func SaveTrainerParties(filepath string, trainerParties []*TrainerParty) error

func SaveTrainers

func SaveTrainers(filepath string, trainers []*Trainer) error

Types

type PokemonSpeciesInfo added in v1.1.1

type PokemonSpeciesInfo struct {
	Species   string
	BaseHp    uint64
	BaseAtk   uint64
	BaseDef   uint64
	BaseSpd   uint64
	BaseSpAtk uint64
	BaseSpDef uint64
	Types     [2]string
}

func TemplateSpeciesInfo added in v1.1.1

func TemplateSpeciesInfo() *PokemonSpeciesInfo

func (*PokemonSpeciesInfo) String added in v1.1.1

func (sp *PokemonSpeciesInfo) String() string

type Trainer

type Trainer struct {
	TrainerKey           string
	TrainerClass         string
	EncounterMusicGender string
	TrainerPic           string
	TrainerName          string
	Items                [4]string
	DoubleBattle         bool
	AiFlags              []string
	Party                string
}

func (*Trainer) GetPartyName

func (t *Trainer) GetPartyName() string

func (*Trainer) String

func (t *Trainer) String() string

type TrainerMon

type TrainerMon struct {
	Iv       [6]uint64
	Lvl      uint64
	Species  string
	Ev       [6]uint64
	HeldItem string
	Moves    [4]string
	Ability  string
	IsShiny  bool
}

func TemplateMon

func TemplateMon() *TrainerMon

func (*TrainerMon) CalculateEvTotal

func (mon *TrainerMon) CalculateEvTotal() int

func (*TrainerMon) CalculateIvTotal

func (mon *TrainerMon) CalculateIvTotal() int

func (*TrainerMon) String

func (mon *TrainerMon) String() string

type TrainerParty

type TrainerParty struct {
	Trainer string
	Party   []*TrainerMon
}

func (*TrainerParty) String

func (t *TrainerParty) String() string

Jump to

Keyboard shortcuts

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