protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Manager;
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #2
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (name == null)
            {
                return(null);
            }

            if (manager == null)
            {
                manager = Lots;
            }

            if ((House != null) && (parameters == null))
            {
                List <SimDescription> houseSims = new List <SimDescription>(HouseholdsEx.Humans(House));

                for (int i = houseSims.Count - 1; i >= 0; i--)
                {
                    if (houseSims[i].ChildOrAbove)
                    {
                        continue;
                    }

                    houseSims.RemoveAt(i);
                }

                if (houseSims.Count == 1)
                {
                    name      += "Single";
                    parameters = new object[] { houseSims[0], House.LotHome };
                }
                else if (houseSims.Count == 2)
                {
                    if (DuoSameHouse(houseSims[0], houseSims[1]))
                    {
                        name += "DuoSameHome";
                    }
                    else
                    {
                        name += "Duo";
                    }
                    parameters = new object[] { houseSims[0], houseSims[1], House.LotHome };
                }
                else
                {
                    SimDescription head = SimTypes.HeadOfFamily(House);

                    string names = ManagerStory.CreateNameString(houseSims, head).ToString();

                    parameters = new object[] { head, names, House.LotHome };
                }
            }

            return(base.PrintStory(manager, name, parameters, extended, logging));
        }
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (mWasMarried)
            {
                name = "Married" + name;
            }
            else
            {
                name = "Steady" + name;
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #4
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (parameters == null)
            {
                if (Sim == null) return null;

                if (Target == null) return null;

                if (!AllowStorySpecies(Sim, Target))
                {
                    return null;
                }

                parameters = new object[] { Sim, Target };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
        protected override ManagerStory.Story PrintFormattedStory(StoryProgressionObject manager, string text, string summaryKey, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Careers;
            }

            if (extended == null)
            {
                if (Event.Career is School)
                {
                    extended = new string[] { Event.Career.GetLocalizedCareerName(Sim.IsFemale) };
                }
                else
                {
                    extended = new string[] { Event.Career.GetLocalizedCareerName(Sim.IsFemale), EAText.GetNumberString(Event.Career.Level) };
                }
            }

            ManagerStory.Story story = base.PrintFormattedStory(manager, mText, summaryKey, parameters, extended, logging);

            if (story != null)
            {
                story.mOverrideImage = Event.Career.CareerIconColored;
            }

            return story;
        }
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Friends;
            }

            if (string.IsNullOrEmpty(name)) return null;

            if (!Sim.IsHuman)
            {
                name += "Pet";
            }
            else if (Sim.Partner == Target)
            {
                name += "Partner";
            }
            else if ((Sim.ToddlerOrBelow) || (Target.ToddlerOrBelow))
            {
                name  += "Toddler";
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Pregnancies;
            }

            if (parameters == null)
            {
                parameters = new object[] { Sim, Target, mNumberOfKidsBetween };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Situations;
            }

            if (parameters == null)
            {
                parameters = new object[] { Sim, SimClock.CurrentTime() };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #9
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (parameters == null)
            {
                SimDescription target = SimTypes.HeadOfFamily(mLot.Household);
                if (target == null) return null;

                parameters = new object[] { Sim, target };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #10
0
        protected override ManagerStory.Story PrintFormattedStory(StoryProgressionObject manager, string text, string summaryKey, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (mMovers.Count == 1) return null;

            if (manager == null)
            {
                if (Manager is SimPersonality)
                {
                    manager = Households;
                }
            }

            if (text == null)
            {
                text = GetTitlePrefix(PrefixType.Summary);
            }

            return Stories.PrintFormattedSummary(Households, text, summaryKey, mMoveInWith, mMovers, extended, logging);
        }
Beispiel #11
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (mMovers.Count != 1) return null;

            if (manager == null)
            {
                if (Manager is SimPersonality)
                {
                    manager = Households;
                }
            }

            return base.PrintStory(manager, name, new object[] { mMovers[0], mMoveInWith }, extended, logging);
        }
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Situations;
            }

            if ((parameters == null) && (mReason != null))
            {
                parameters = new object[] { Sim, mReason.CatalogName };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #13
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Friends;
            }

            if (!Sim.IsHuman)
            {
                name += "Pet";
            }
            else if ((Sim.Child) && (Target.Child))
            {
                name += "Child";
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #14
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Friends;
            }

            if (!Sim.IsHuman)
            {
                name += "Pet";
            }
            else if (Sim.ToddlerOrBelow)
            {
                name += "Toddler";
            }
            else if (Target.ToddlerOrBelow)
            {
                ExchangeSims();

                name += "Toddler";
            }
            else if ((Sim.TeenOrAbove) && (Target.TeenOrAbove))
            {
                name += "TeenAbove";
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #15
0
        protected override ManagerStory.Story PrintFormattedStory(StoryProgressionObject manager, string text, string summaryKey, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (parameters == null)
            {
                if (Sim == null) return null;

                if (Target == null) return null;

                parameters = new object[] { Sim, Target };
            }

            return base.PrintFormattedStory(manager, text, summaryKey, parameters, extended, logging);
        }
Beispiel #16
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (parameters == null)
            {
                if (Sim == null) return null;

                parameters = new object[] { Sim };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
        protected override ManagerStory.Story PrintFormattedStory(StoryProgressionObject manager, string text, string summaryKey, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (!ShouldReport) return null;

            if (manager == null)
            {
                manager = Lots;
            }

            ManagerStory.Story story = base.PrintFormattedStory(manager, mStory, summaryKey, parameters, extended, logging);

            if (story != null)
            {
                story.mShowNoImage = true;
            }

            return story;
        }
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Lots;
            }

            if (parameters == null)
            {
                if (Sim.Household == null) return null;

                return Stories.PrintStory(manager, name, Sim.Household, extended, logging);
            }
            else
            {
                return base.PrintStory(manager, name, parameters, extended, logging);
            }
        }
Beispiel #19
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (parameters == null)
            {
                parameters = new object[] { Sim, Target, mSkillName };
            }

            if (extended == null)
            {
                extended = new string[] { mSkillName };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #20
0
            protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
            {
                if (manager == null)
                {
                    manager = Deaths;
                }

                GetData<ManagerDeath.DyingSimData>(Sim).Notified = true;

                return base.PrintStory(manager, name, parameters, extended, logging);
            }
Beispiel #21
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (mNemesis)
            {
                SimPersonality clan = Manager as SimPersonality;
                if (clan != null)
                {
                    if (clan.Me != Sim) return null;
                }

                name = "Nemesis";
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #22
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (parameters == null)
            {
                parameters = new object[] { Sim, mFunds };
            }

            if (extended == null)
            {
                extended = new string[] { EAText.GetMoneyString(mFunds) };
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (manager == null)
            {
                manager = Friends;
            }

            if (!Sim.IsHuman)
            {
                if (string.IsNullOrEmpty(name)) return null;

                name += "Pet";
            }
            else if (mNemesis)
            {
                SimPersonality clan = Manager as SimPersonality;
                if (clan != null)
                {
                    if (clan.Me != Sim) return null;
                }

                name = "Nemesis";
            }
            else if (Sim.Partner == Target)
            {
                if (string.IsNullOrEmpty(name)) return null;

                name += "Partner";
            }

            return base.PrintStory(manager, name, parameters, extended, logging);
        }
Beispiel #24
0
        protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (parameters == null)
            {
                if (House == null) return null;

                if (name == null) return null;

                if (manager == null)
                {
                    manager = Manager;
                }

                return Stories.PrintStory(manager, name, House, extended, logging);
            }
            else
            {
                return base.PrintStory(manager, name, parameters, extended, logging);
            }
        }