protected LadderScenario(LadderScenario scenario) : base(scenario) { mName = scenario.mName; mSuccess = scenario.mSuccess; mGiveRaise = scenario.mGiveRaise; }
protected BloomScenario(BloomScenario scenario) : base(scenario) { mName = scenario.mName; mSuccess = scenario.mSuccess; mLocale = scenario.mLocale; }
public override bool Parse(XmlDbRow row, ref string error) { mName = new WeightOption.NameOption(row); mBail = new IntegerOption.OptionValue(-1); if (row.Exists("Bail")) { if (!mBail.Parse(row, "Bail", Manager, this, ref error)) { return(false); } } mChance = new IntegerOption.OptionValue(); if (!mChance.Parse(row, "Chance", Manager, this, ref error)) { return(false); } mSuccess = new WeightScenarioHelper(Origin.FromBurglar); if (!mSuccess.Parse(row, Manager, this, "Success", ref error)) { return(false); } return(base.Parse(row, ref error)); }
protected HookupScenario(HookupScenario scenario) : base(scenario) { mName = scenario.mName; mSeperateAdultStory = scenario.mSeperateAdultStory; mSuccess = scenario.mSuccess; }
protected EducateScenario(EducateScenario scenario) : base(scenario) { mName = scenario.mName; mSuccess = scenario.mSuccess; mSkill = scenario.mSkill; }
protected RentScenario(RentScenario scenario) : base(scenario) { mName = scenario.mName; mMinimumWealth = scenario.mMinimumWealth; mSuccess = scenario.mSuccess; }
protected DerisionScenario(DerisionScenario scenario) : base(scenario) { mName = scenario.mName; mSuccess = scenario.mSuccess; mNemesis = scenario.mNemesis; }
public override bool Parse(XmlDbRow row, ref string error) { mName = row.GetString("Name"); if (!mMinimum.Parse(row, "Minimum", Manager, ref error)) { return(false); } if (!mMaximum.Parse(row, "Maximum", Manager, ref error)) { return(false); } mAllowGoToJail = row.GetBool("AllowGoToJail"); mKeepObject = row.GetBool("KeepObject"); mSneakinessScoring = row.GetString("SneakinessScoring"); mSuccess = new WeightScenarioHelper(Origin.FromBurglar); if (!mSuccess.Parse(row, Manager, "Success", ref error)) { return(false); } mFailure = new WeightScenarioHelper(Origin.FromBurglar); if (!mFailure.Parse(row, Manager, "Failure", ref error)) { return(false); } return(base.Parse(row, ref error)); }
protected FixItScenario(FixItScenario scenario) : base(scenario) { mName = scenario.mName; mTargetFilter = scenario.mTargetFilter; mSuccess = scenario.mSuccess; }
public override bool Parse(XmlDbRow row, ref string error) { mName = new WeightOption.NameOption(row); mInjuredStory = row.GetString("InjuredStory"); if (!ParserFunctions.TryParseEnum <SimDescription.DeathType>(row.GetString("Type"), out mType, SimDescription.DeathType.None)) { error = "Type not valid"; return(false); } if (mType == SimDescription.DeathType.None) { error = "Type cannot be None"; return(false); } mSuccess = new WeightScenarioHelper(Origin.FromWatchingSimSuffer); if (!mSuccess.Parse(row, Manager, this, "Success", ref error)) { return(false); } return(base.Parse(row, ref error)); }
protected DownsizeScenario(DownsizeScenario scenario) : base(scenario) { mName = scenario.mName; mSuccess = scenario.mSuccess; mbShouldFire = scenario.mbShouldFire; }
protected TraitAssignScenario(TraitAssignScenario scenario) : base(scenario) { mName = scenario.mName; mTrait = scenario.mTrait; mSuccess = scenario.mSuccess; }
public override bool Parse(XmlDbRow row, ref string error) { mName = new WeightOption.NameOption(row); if (row.Exists("ChildStory")) { mChildStory = row.GetBool("ChildStory"); } if (row.Exists("AllowDoorPranks")) { mAllowDoorPranks = row.GetBool("AllowDoorPranks"); } mSneakinessScoring = row.GetString("SneakinessScoring"); mSuccess = new WeightScenarioHelper(Origin.FromSocialization); if (!mSuccess.Parse(row, Manager, this, "Success", ref error)) { return(false); } mFailure = new WeightScenarioHelper(Origin.FromSocialization); if (!mFailure.Parse(row, Manager, this, "Failure", ref error)) { return(false); } return(base.Parse(row, ref error)); }
protected SendToHospitalScenario(SendToHospitalScenario scenario) : base(scenario) { mName = scenario.mName; mType = scenario.mType; mInjuredStory = scenario.mInjuredStory; mSuccess = scenario.mSuccess; }
protected ShindigScenario(ShindigScenario scenario) : base(scenario) { mName = scenario.mName; mChanceOfHomeLot = scenario.mChanceOfHomeLot; mPartyAttire = scenario.mPartyAttire; mSuccess = scenario.mSuccess; }
protected InvestScenario(InvestScenario scenario) : base(scenario) { mName = scenario.mName; mMinimumWealth = scenario.mMinimumWealth; mAllowMultiple = scenario.mAllowMultiple; mSuccess = scenario.mSuccess; }
protected HoosegowScenario(HoosegowScenario scenario) : base(scenario) { mName = scenario.mName; mChance = scenario.mChance; mBail = scenario.mBail; mSuccess = scenario.mSuccess; }
protected LearnScenario(LearnScenario scenario) : base(scenario) { mName = scenario.mName; mSuccess = scenario.mSuccess; mAllowSkill = scenario.mAllowSkill; mAllowNormal = scenario.mAllowNormal; }
protected RecruitScenario(RecruitScenario scenario) : base(scenario) { mName = scenario.mName; mAllowSteal = scenario.mAllowSteal; mSuccess = scenario.mSuccess; mFailure = scenario.mFailure; // mFail = scenario.mFail; }
public override bool Parse(XmlDbRow row, ref string error) { mName = new WeightOption.NameOption(row); if (!row.Exists("AllowGoToJail")) { error = "AllowGoToJail missing"; return(false); } mAllowGoToJail = row.GetBool("AllowGoToJail"); mBail = new IntegerOption.OptionValue(-1); if (row.Exists("Bail")) { if (!mBail.Parse(row, "Bail", 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); } mKeepObject = row.GetBool("KeepObject"); mSneakinessScoring = row.GetString("SneakinessScoring"); mSuccess = new WeightScenarioHelper(Origin.FromBurglar); if (!mSuccess.Parse(row, Manager, this, "Success", ref error)) { return(false); } mFailure = new WeightScenarioHelper(Origin.FromBurglar); if (!mFailure.Parse(row, Manager, this, "Failure", ref error)) { return(false); } return(base.Parse(row, ref error)); }
protected RefundScenario(RefundScenario scenario) : base(scenario) { mName = scenario.mName; mMinimum = scenario.mMinimum; mMaximum = scenario.mMaximum; mAlterKey = scenario.mAlterKey; mAccountingKey = scenario.mAccountingKey; mSuccess = scenario.mSuccess; }
protected DropMemberScenario(DropMemberScenario scenario) : base(scenario) { mName = scenario.mName; mAcceptanceScoring = scenario.mAcceptanceScoring; mSuccess = scenario.mSuccess; mFailure = scenario.mFailure; mFail = scenario.mFail; mChance = scenario.mChance; }
protected ArsonScenario(ArsonScenario scenario) : base(scenario) { mName = scenario.mName; mAllowInjury = scenario.mAllowInjury; mSuccess = scenario.mSuccess; mFailure = scenario.mFailure; mSneakinessScoring = scenario.mSneakinessScoring; mAllowGoToJail = scenario.mAllowGoToJail; }
protected FineScenario(FineScenario scenario) : base(scenario) { mName = scenario.mName; mMinimum = scenario.mMinimum; mMaximum = scenario.mMaximum; mAccountingKey = scenario.mAccountingKey; mSuccess = scenario.mSuccess; mAllowDebt = scenario.mAllowDebt; }
protected FamiliarScenario(FamiliarScenario scenario) : base(scenario) { mName = scenario.mName; mCheckAny = scenario.mCheckAny; mCheckExisting = scenario.mCheckExisting; mSpecies = scenario.mSpecies; mDelta = scenario.mDelta; mAges = scenario.mAges; mSuccess = scenario.mSuccess; }
protected PrankScenario(PrankScenario scenario) : base(scenario) { mName = scenario.mName; mSuccess = scenario.mSuccess; mFailure = scenario.mFailure; mChildStory = scenario.mChildStory; mSneakinessScoring = scenario.mSneakinessScoring; mAllowDoorPranks = scenario.mAllowDoorPranks; // mFail = scenario.mFail; }
public override bool Parse(XmlDbRow row, ref string error) { mName = new WeightOption.NameOption(row); mSuccess = new WeightScenarioHelper(Origin.FromSocialization); if (!mSuccess.Parse(row, Manager, this, "Success", ref error)) { return(false); } return(base.Parse(row, ref error)); }
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; }
protected StealScenario(StealScenario 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; }
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; }