octocat

package
v0.0.0-...-a15c6e7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessory

type Accessory struct {
	Style string
}

func NewAccessory

func NewAccessory(style string) *Accessory

func (*Accessory) String

func (a *Accessory) String() string

type AccessorySet

type AccessorySet struct {
	Accessories []*Accessory
}

func GetAccessorySets

func GetAccessorySets(accessoryChoices []*Accessory) []*AccessorySet

func NewAccessorySet

func NewAccessorySet(accessories ...*Accessory) *AccessorySet

func NoAccessories

func NoAccessories() *AccessorySet

func (*AccessorySet) String

func (s *AccessorySet) String() string

type Body

type Body struct {
	Colors []*Color
}

func NewBody

func NewBody(colors ...*Color) *Body

func (*Body) String

func (b *Body) String() string

type Bottom

type Bottom struct {
	Style string
}

func NewBottom

func NewBottom(style string) *Bottom

func NoBottom

func NoBottom() *Bottom

func (*Bottom) String

func (b *Bottom) String() string

type Color

type Color struct {
	HexCode string
}

func NewColor

func NewColor(hexCode string) *Color

func (*Color) String

func (c *Color) String() string

type Eyes

type Eyes struct {
	Color *Color
	Style string
}

func NewEyes

func NewEyes(color *Color, style string) *Eyes

func (*Eyes) String

func (e *Eyes) String() string

type Eyewear

type Eyewear struct {
	Style string
}

func NewEyewear

func NewEyewear(style string) *Eyewear

func NoEyewear

func NoEyewear() *Eyewear

func (*Eyewear) String

func (e *Eyewear) String() string

type Face

type Face struct {
	Color     *Color
	NoseColor *Color
}

func NewFace

func NewFace(color *Color, noseColor *Color) *Face

func (*Face) String

func (f *Face) String() string

type FacialHair

type FacialHair struct {
	Color *Color
	Style string
}

func NewFacialHair

func NewFacialHair(color *Color, style string) *FacialHair

func NoFacialHair

func NoFacialHair() *FacialHair

func (*FacialHair) String

func (h *FacialHair) String() string

type Footwear

type Footwear struct {
	Style string
}

func NewFootwear

func NewFootwear(style string) *Footwear

func NoFootwear

func NoFootwear() *Footwear

func (*Footwear) String

func (f *Footwear) String() string

type Hair

type Hair struct {
	Color *Color
	Style string
}

func NewHair

func NewHair(color *Color, style string) *Hair

func NoHair

func NoHair() *Hair

func (*Hair) String

func (h *Hair) String() string

type Headgear

type Headgear struct {
	Style string
}

func NewHeadgear

func NewHeadgear(style string) *Headgear

func NoHeadgear

func NoHeadgear() *Headgear

func (*Headgear) String

func (h *Headgear) String() string

type Mouth

type Mouth struct {
	Style string
}

func NewMouth

func NewMouth(style string) *Mouth

func (*Mouth) String

func (m *Mouth) String() string

type Octocat

type Octocat struct {
	Body         *Body
	Face         *Face
	Eyes         *Eyes
	Mouth        *Mouth
	Hair         *Hair
	FacialHair   *FacialHair
	Outfit       *Outfit
	AccessorySet *AccessorySet
	Prop         *Prop
}

func NewOctocat

func NewOctocat(body *Body, face *Face, eyes *Eyes, mouth *Mouth, hair *Hair, facialHair *FacialHair, outfit *Outfit, accessorySet *AccessorySet, prop *Prop) *Octocat

func (*Octocat) String

func (o *Octocat) String() string

type OctocatGenerator

type OctocatGenerator struct {
	Bodies          []*Body
	Faces           []*Face
	EyeChoices      []*Eyes
	Mouths          []*Mouth
	Hairs           []*Hair
	FacialHairs     []*FacialHair
	AccessorySets   []*AccessorySet
	Props           []*Prop
	OutfitGenerator *OutfitGenerator
}

func NewOctocatGenerator

func NewOctocatGenerator(b []*Body, f []*Face, e []*Eyes, m []*Mouth, h []*Hair, fh []*FacialHair, a []*AccessorySet, p []*Prop, g *OutfitGenerator) *OctocatGenerator

func (*OctocatGenerator) Generate

func (g *OctocatGenerator) Generate() *Octocat

type Outfit

type Outfit struct {
	Top      *Top
	Bottom   *Bottom
	Footwear *Footwear
	Headgear *Headgear
	Eyewear  *Eyewear
}

func GenerateOutfit

func GenerateOutfit(topChoices []*Top, bottomChoices []*Bottom, footwearChoices []*Footwear, headgearChoices []*Headgear, eyewearChoices []*Eyewear) *Outfit

func NewOutfit

func NewOutfit(top *Top, bottom *Bottom, footwear *Footwear, headgear *Headgear, eyewear *Eyewear) *Outfit

func (*Outfit) String

func (o *Outfit) String() string

type OutfitGenerator

type OutfitGenerator struct {
	Tops            []*Top
	Bottoms         []*Bottom
	FootwearChoices []*Footwear
	HeadgearChoices []*Headgear
	EyewearChoices  []*Eyewear
}

func NewOutfitGenerator

func NewOutfitGenerator(t []*Top, b []*Bottom, f []*Footwear, h []*Headgear, e []*Eyewear) *OutfitGenerator

func (*OutfitGenerator) Generate

func (g *OutfitGenerator) Generate() *Outfit

func (*OutfitGenerator) TotalPossible

func (g *OutfitGenerator) TotalPossible() uint64

type Prop

type Prop struct {
	Style string
}

func NewProp

func NewProp(style string) *Prop

func (*Prop) String

func (p *Prop) String() string

type Top

type Top struct {
	Style string
}

func NewTop

func NewTop(style string) *Top

func NoTop

func NoTop() *Top

func (*Top) String

func (t *Top) String() string

Jump to

Keyboard shortcuts

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