Esempio n. 1
0
                public override PhoneCall.QueryResponse GetQueryResponse(Sim sim)
                {
                    if (mInvitationKeys == null)
                    {
                        HouseParty.PartyInvitationKeys kDefaultPartyKeys = HouseParty.kDefaultPartyKeys;
                    }
                    SimDescription description = ManagerSim.Find(mHostDescriptionId);
                    Sim            sim2        = (description != null) ? description.CreatedSim : null;

                    if (sim2 == null)
                    {
                        return(PhoneCall.QueryResponse.JustHangUp);
                    }
                    if (!TwoButtonDialog.Show(Common.LocalizeEAString(sim.IsFemale, mInvitationKeys.InvitationKey, new object[] { sim, sim2, mStartTime }), Common.LocalizeEAString(mInvitationKeys.AcceptKey), Common.LocalizeEAString(mInvitationKeys.RejectKey)))
                    {
                        return(PhoneCall.QueryResponse.RespondNegatively);
                    }
                    return(PhoneCall.QueryResponse.RespondPositively);
                }
Esempio n. 2
0
 public DeliverInvitations(HousePartySituation parent, HouseParty.PartyInvitationKeys invitationKeys)
     : base(parent)
 {
     mInvitationKeys = invitationKeys;
 }
Esempio n. 3
0
 public InvitationPhoneCall(Sim host, Sim sim, DateAndTime startTime, HouseParty.PartyInvitationKeys invitationKeys) : base(sim)
 {
     mHostDescriptionId = host.SimDescription.SimDescriptionId;
     mStartTime         = startTime;
     mInvitationKeys    = invitationKeys;
 }
Esempio n. 4
0
 protected HousePartySituation(Lot lot, Sim host, List <SimDescription> guests, OutfitCategories clothingStyle, DateAndTime startTime, HouseParty.PartyInvitationKeys invitationKeys)
     : base(lot, host, guests, clothingStyle, startTime)
 {
     if (lot == host.LotHome)
     {
         EventTracker.SendEvent(EventTypeId.kHousePartySoon, host);
     }
     else
     {
         EventTracker.SendEvent(EventTypeId.kOffLotPartySoon, host);
     }
     mPulse = AddPulseAlarm(host, Pulse, GetParams().MinutesPerLeavingCheck, "Party Pulse");
     if (invitationKeys != null)
     {
         SetState(new DeliverInvitations(this, invitationKeys));
     }
     else
     {
         SetState(new WaitForPreparations(this));
     }
 }