Exemplo n.º 1
0
        protected override bool PrivateUpdate(ScenarioFrame frame)
        {
            if (!mForceHome)
            {
                Lot current = Sim.CreatedSim.LotCurrent;

                if ((!current.IsResidentialLot) || (Sim.CreatedSim.IsGreetedOnLot(current)))
                {
                    if (Situations.PushGoHere(this, Sim, GetDestination(current, Sim.CreatedSim.Position)))
                    {
                        Friends.AddAlarm(new HeatingUpScenario(Sim, true));
                        return(true);
                    }
                }
            }

            Situations.PushGoHome(this, Sim);

            if (Situations.PushGoHere(this, Sim, GetDestination(Sim.LotHome, Sim.CreatedSim.Position)))
            {
                return(true);
            }

            return(false);
        }