Example #1
0
 protected TurnScenario(TurnScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mFail = scenario.mFail;
     mFight = scenario.mFight;
 }
Example #2
0
 protected DerisionScenario(DerisionScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mNemesis = scenario.mNemesis;
 }
Example #3
0
 protected BloomScenario(BloomScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mLocale = scenario.mLocale;
 }
Example #4
0
 protected DownsizeScenario(DownsizeScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mbShouldFire = scenario.mbShouldFire;
 }
Example #5
0
 protected RentScenario(RentScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mSuccess = scenario.mSuccess;
 }
Example #6
0
 protected HookupScenario(HookupScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSeperateAdultStory = scenario.mSeperateAdultStory;
     mSuccess = scenario.mSuccess;
 }
Example #7
0
 protected TraitAssignScenario(TraitAssignScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mTrait = scenario.mTrait;
     mSuccess = scenario.mSuccess;
 }
Example #8
0
 protected FixItScenario(FixItScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mTargetFilter = scenario.mTargetFilter;
     mSuccess = scenario.mSuccess;
 }
Example #9
0
 protected EducateScenario(EducateScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mSkill = scenario.mSkill;
 }
Example #10
0
 protected ShindigScenario(ShindigScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mChanceOfHomeLot = scenario.mChanceOfHomeLot;
     mPartyAttire = scenario.mPartyAttire;
     mSuccess = scenario.mSuccess;
 }
Example #11
0
 protected OustScenario(OustScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mFail = scenario.mFail;
     mFight = scenario.mFight;
     mReaddOldLeader = scenario.mReaddOldLeader;
 }
Example #12
0
 protected HoosegowScenario(HoosegowScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mChance = scenario.mChance;
     mBail = scenario.mBail;
     mSuccess = scenario.mSuccess;
 }
Example #13
0
 protected LearnScenario(LearnScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mAllowSkill = scenario.mAllowSkill;
     mAllowNormal = scenario.mAllowNormal;
 }
Example #14
0
 protected InvestScenario(InvestScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mAllowMultiple = scenario.mAllowMultiple;
     mSuccess = scenario.mSuccess;
 }
 protected SendToHospitalScenario(SendToHospitalScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mType = scenario.mType;
     mInjuredStory = scenario.mInjuredStory;
     mSuccess = scenario.mSuccess;
 }
Example #16
0
 protected RecruitScenario(RecruitScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mAllowSteal = scenario.mAllowSteal;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     // mFail = scenario.mFail;
 }
Example #17
0
 protected RefundScenario(RefundScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAlterKey = scenario.mAlterKey;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess = scenario.mSuccess;
 }
Example #18
0
 protected DropMemberScenario(DropMemberScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mAcceptanceScoring = scenario.mAcceptanceScoring;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mFail = scenario.mFail;
     mChance = scenario.mChance;
 }
Example #19
0
 protected VictimizeScenario(VictimizeScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mReason = scenario.mReason;
     mFight = scenario.mFight;
     mTraitReasons = scenario.mTraitReasons;
     mAgeGenderReasons = scenario.mAgeGenderReasons;
     //mFail = scenario.mFail;
 }
Example #20
0
 protected FineScenario(FineScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess = scenario.mSuccess;
     mAllowDebt = scenario.mAllowDebt;
 }
Example #21
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mSuccess = new WeightScenarioHelper(Origin.FromBreakingUp);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Example #22
0
 protected TorchScenario(TorchScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mAllowInjury = scenario.mAllowInjury;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail = scenario.mAllowGoToJail;
     mBail = scenario.mBail;
     mInvestigate = scenario.mInvestigate;
 }
Example #23
0
 protected GiveCashScenario(GiveCashScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mAcceptanceScoring = scenario.mAcceptanceScoring;
     mAccountingKey = scenario.mAccountingKey;
     //mFail = scenario.mFail;
 }
Example #24
0
 protected TakeCashScenario(TakeCashScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAllowDebt = scenario.mAllowDebt;
     mAccountingKey = scenario.mAccountingKey;
     mFight = scenario.mFight;
     mFail = scenario.mFail;
     mInvestigate = scenario.mInvestigate;
 }
Example #25
0
 protected CanoodleScenario(CanoodleScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     //mFail = scenario.mFail;
     mAllowPartner = scenario.mAllowPartner;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mAcceptanceScoring = scenario.mAcceptanceScoring;
     mTypeOfStory = scenario.mTypeOfStory;
     mAffairStory = scenario.mAffairStory;
     mChanceOfPregnancy = scenario.mChanceOfPregnancy;
 }
Example #26
0
 protected BurgleScenario(BurgleScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mKeepObject = scenario.mKeepObject;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail = scenario.mAllowGoToJail;
     mBail = scenario.mBail;
     mInvestigate = scenario.mInvestigate;
 }
Example #27
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mTargetFilter = new SimScenarioFilter();
            if (!mTargetFilter.Parse(row, Manager, this, "Target", true, ref error))
            {
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromCharity);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Example #28
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mAllowDebt = row.GetBool("AllowDebt");

            if (row.Exists("AccountingKey"))
            {
                mAccountingKey = row.GetString("AccountingKey");
            }
            else
            {
                error = "AccountingKey missing";
                return false;
            }

            mFight = new FightScenarioHelper(Origin.FromTheft, SimDescription.DeathType.OldAge);
            if (!mFight.Parse(row, Manager, this, ref error))
            {
                return false;
            }

            mInvestigate = new InvestigationHelper();
            if (!mInvestigate.Parse(row, Manager, this, ref error))
            {
                return false;
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return false;
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Example #29
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            if (row.Exists("AccountingKey"))
            {
                mAccountingKey = row.GetString("AccountingKey");
            }
            else
            {
                error = "AccountingKey missing";
                return false;
            }

            mAllowDebt = new BooleanOption.OptionValue();
            if (!mAllowDebt.Parse(row, "AllowDebt", Manager, this, ref error))
            {
                return false;
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return false;
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
            {
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromGettingGifts);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Example #30
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mFight = new FightScenarioHelper(Origin.FromWatchingSimSuffer, DeathType);
            if (!mFight.Parse(row, Manager, this, ref error))
            {
                return false;
            }

            if (!row.Exists("ReaddOldLeader"))
            {
                error = "ReaddOldLeader Missing";
                return false;
            }

            mReaddOldLeader = row.GetBool("ReaddOldLeader");

            return base.Parse(row, ref error);
        }