Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Champion ¶
type Champion struct { ID string `yaml:"id"` Name string `yaml:"name"` Title string `yaml:"title"` Tags string `yaml:"tags"` Passive Passive `yaml:"passive"` Stats Stats `yaml:"stats"` Spells []Spell `yaml:"spells"` }
Champion LoL champion data struct
type FightTactics ¶
type FightTactics struct {
// contains filtered or unexported fields
}
func (*FightTactics) Fight ¶
func (f *FightTactics) Fight(champion1, champion2 Champion) TacticsSol
Fight Champion1 vs Champion2 health point
func (*FightTactics) ReadChampion ¶
func (f *FightTactics) ReadChampion(filePath string) (champion Champion, err error)
func (*FightTactics) WriteChampion ¶
func (f *FightTactics) WriteChampion(champion Champion, filePath string) error
type Tactics ¶
type Tactics interface { ReadChampion(filePath string) (champion Champion, err error) WriteChampion(champion Champion, filePath string) error Fight(champion1, champion2 Champion) TacticsSol }
func NewTactics ¶
type TacticsSol ¶
Click to show internal directories.
Click to hide internal directories.