コード例 #1
0
ファイル: Game.cs プロジェクト: jenn0108/CourtIntrigue
        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);
        }