Documentation ¶
Index ¶
- Variables
- func GetHairColorStr(g *genetics.Genes) string
- func SetEyeColor(g *genetics.Genes, val EyeColor)
- func SetGender(g *genetics.Genes, val Gender)
- func SetHairColor(g *genetics.Genes, val HairColor, curls bool)
- func String(g genetics.Genes) string
- type Attrs
- type EyeColor
- type FiveFactor
- type Gender
- type HairColor
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GGender = genetics.Gene{ NumBits: 2, Offset: 62, } GEyeColor = genetics.Gene{ NumBits: 2, Offset: 60, } GHairColor = genetics.Gene{ NumBits: 3, Offset: 57, } GComplexion = genetics.Gene{ NumBits: 4, Offset: 53, } GHeight = genetics.Gene{ NumBits: 3, Offset: 50, } GMass = genetics.Gene{ NumBits: 3, Offset: 47, } GGrowth = genetics.Gene{ NumBits: 3, Offset: 44, } GStrength = genetics.Gene{ NumBits: 4, Offset: 40, } GIntelligence = genetics.Gene{ NumBits: 4, Offset: 36, } GDexterity = genetics.Gene{ NumBits: 4, Offset: 32, } GResilience = genetics.Gene{ NumBits: 4, Offset: 28, } GOpenness = genetics.Gene{ NumBits: 4, Offset: 24, } GConscientiousness = genetics.Gene{ NumBits: 4, Offset: 20, } GExtraversion = genetics.Gene{ NumBits: 4, Offset: 16, } GAgreeableness = genetics.Gene{ NumBits: 4, Offset: 12, } GNeuroticism = genetics.Gene{ NumBits: 4, Offset: 8, } )
Functions ¶
func GetHairColorStr ¶
func SetEyeColor ¶
Types ¶
type FiveFactor ¶
type FiveFactor struct { Openness int Conscientiousness int Extraversion int Agreeableness int Neuroticism int }
func GetFiveFactor ¶
func GetFiveFactor(g *genetics.Genes) FiveFactor
func (FiveFactor) String ¶
func (s FiveFactor) String() string
Click to show internal directories.
Click to hide internal directories.