Ejemplo n.º 1
0
        public void CreateChild(Character mother, Character father)
        {
            Gender gender = (Gender)GetRandom(2);
            string name = gender == Gender.Female ? GetRandomFemaleName() : GetRandomMaleName();

            Character child = new AICharacter(name, CurrentTime, mother.Spouse.Dynasty, 0, this, gender);
            child.AssignParents(mother, father);

            characters.Add(child);
        }