public static Character createRandomCharacter()
    {
        /**
         * We want to setup these values in a very particular sequence.
         * i.e. What is said in life events depends on age.
         * i.e. A character's name depends on their gender.
         * etc. etc.
         */

        Age                   age                   = Age.ReturnRandomAge();
        Mother                mother                = Mother.ReturnMother();
        Father                father                = Father.ReturnFather();
        Parents               parents               = Parents.ReturnRandomParentsComment();
        Appearance            appearance            = Appearance.ReturnRandomAppearanceComment();
        Race                  race                  = Race.ReturnRandomRace();
        LifeEvents            lifeEvents            = LifeEvents.ReturnRandomLifeEventsComment();
        Childhood             childhood             = Childhood.ReturnRandomChildhoodEvent();
        Adolescence           adolescence           = Adolescence.ReturnRandomAdolescenceEvent();
        Adulthood             adulthood             = Adulthood.ReturnRandomAdulthoodEvent();
        OldAge                elder                 = OldAge.ReturnRandomElderlyEvent();
        Profession            profession            = Profession.ReturnRandomProfession();
        RelationshipStatus    relationshipStatus    = RelationshipStatus.ReturnRandomRelationshipStatus();
        Stats                 stats                 = Stats.GenerateRandomStats();
        Role                  role                  = Role.ReturnRandomRole();
        Demeanor              demeanor              = Demeanor.ReturnRandomDemeanor();
        Gender                gender                = Gender.ReturnRandomGender();
        CharacterName         characterName         = CharacterName.ReturnRandomCharacterName(gender);
        PlaceOfResidence      placeOfResidence      = PlaceOfResidence.ReturnRandomPlaceOfResidence();
        NullChatMenuComponent nullChatMenuComponent = new NullChatMenuComponent("");

        Character randomCharacter;

        randomCharacter = new Character(characterName, age, parents, mother, father, appearance, race, lifeEvents, childhood, adolescence, adulthood, elder, profession, relationshipStatus, stats, role, demeanor, gender, placeOfResidence, nullChatMenuComponent);
        return(randomCharacter);
    }
Example #2
0
    public static Adulthood ReturnRandomAdulthoodEvent()
    {
        List <string> adulthoodEventsList = new List <string>();

        adulthoodEventsList.Add("I fell in love.");
        adulthoodEventsList.Add("I became very sick.");
        adulthoodEventsList.Add("I joined the resistance.");
        adulthoodEventsList.Add("I liberated a group of mutant slaves.");
        adulthoodEventsList.Add("I found myself homeless.");
        adulthoodEventsList.Add("I found myself employed by a very generous corporation.");

        Adulthood randomAdulthoodEvent = new Adulthood(adulthoodEventsList[Random.Range(0, adulthoodEventsList.Count)]);

        return(randomAdulthoodEvent);
    }
 public Character(CharacterName characterName, Age age, Parents parents, Mother mother, Father father, Appearance appearance, Race race, LifeEvents lifeEvents, Childhood childhood, Adolescence adolescence, Adulthood adulthood, OldAge elder, Profession profession, RelationshipStatus relationshipStatus, Stats stats, Role role, Demeanor demeanor, Gender gender, PlaceOfResidence placeOfResidence, NullChatMenuComponent nullChatMenuComponent)
 {
     this.characterName         = characterName;
     this.age                   = age;
     this.parents               = parents;
     this.mother                = mother;
     this.father                = father;
     this.appearance            = appearance;
     this.race                  = race;
     this.lifeEvents            = lifeEvents;
     this.childhood             = childhood;
     this.adolescence           = adolescence;
     this.adulthood             = adulthood;
     this.elder                 = elder;
     this.profession            = profession;
     this.relationshipStatus    = relationshipStatus;
     this.stats                 = stats;
     this.role                  = role;
     this.demeanor              = demeanor;
     this.gender                = gender;
     this.placeOfResidence      = placeOfResidence;
     this.nullChatMenuComponent = nullChatMenuComponent;
 }