Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 FacialHair ¶
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 NoFootwear ¶
func NoFootwear() *Footwear
type Headgear ¶
type Headgear struct {
Style string
}
func NewHeadgear ¶
func NoHeadgear ¶
func NoHeadgear() *Headgear
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
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 ¶
type OutfitGenerator ¶
type OutfitGenerator struct { Tops []*Top Bottoms []*Bottom FootwearChoices []*Footwear HeadgearChoices []*Headgear EyewearChoices []*Eyewear }
func NewOutfitGenerator ¶
func (*OutfitGenerator) Generate ¶
func (g *OutfitGenerator) Generate() *Outfit
func (*OutfitGenerator) TotalPossible ¶
func (g *OutfitGenerator) TotalPossible() uint64
Click to show internal directories.
Click to hide internal directories.