Documentation ¶
Overview ¶
Package character provides fictional character generation tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct { FirstName string `json:"first_name"` LastName string `json:"last_name"` Title string `json:"title"` // Title is the character's primary title Titles []string `json:"titles"` // Titles is a list of all of the character's titles Heraldry heraldry.SimplifiedDevice `json:"heraldry"` Gender gender.Gender `json:"gender"` Age int `json:"age"` AgeCategory age.Category `json:"age_category"` Orientation string `json:"orientation"` Height int `json:"height"` Weight int `json:"weight"` Profession profession.Profession `json:"profession"` Hobby Hobby `json:"hobby"` NegativeTraits []string `json:"negative_traits"` PositiveTraits []string `json:"positive_traits"` Motivation string `json:"motivation"` PhysicalTraits []trait.Trait `json:"physical_traits"` Culture culture.Culture `json:"culture"` Race species.Species `json:"race"` }
Character is a character
func GenerateAdultDescendent ¶
GenerateAdultDescendent generates an adult character based on a couple
func GenerateChild ¶
GenerateChild generates a child character for a couple
func GenerateCompatibleMate ¶
GenerateCompatibleMate generates a character appropriate as a mate for another
func (Character) Describe ¶
Describe returns a prose description of a character based on his or her traits and attributes
func (Character) Simplify ¶
func (character Character) Simplify() (SimplifiedCharacter, error)
Simplify returns a simplified version of a character
type Couple ¶
Couple is a pair of partners
func MarryCouple ¶
MarryCouple returns a couple from two characters
type Description ¶
type Description struct { Age string Culture string FirstName string FullName string GenderNoun string Height string Heraldry string Hobby string LastName string Motivation string NegativeTraits string PositiveTraits string PossessivePronoun string Profession string Race string SubjectPronoun string Traits string Weight string }
Description is a description object of a character
type Family ¶
Family is a family of characters
func GenerateFamily ¶
GenerateFamily generates a random family
type SimplifiedCharacter ¶
type SimplifiedCharacter struct { Name string `json:"name"` Titles string `json:"titles"` Blazon string `json:"blazon"` Device string `json:"device"` Description string `json:"description"` }
SimplifiedCharacter is a simplified version of a character
func RandomSimplified ¶
func RandomSimplified() (SimplifiedCharacter, error)
RandomSimplified returns a random simplified character