コード例 #1
0
ファイル: EducateScenario.cs プロジェクト: Robobeurre/NRaas
 protected EducateScenario(EducateScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mSkill = scenario.mSkill;
 }
コード例 #2
0
ファイル: RentScenario.cs プロジェクト: Robobeurre/NRaas
 protected RentScenario(RentScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mSuccess = scenario.mSuccess;
 }
コード例 #3
0
ファイル: FixItScenario.cs プロジェクト: Robobeurre/NRaas
 protected FixItScenario(FixItScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mTargetFilter = scenario.mTargetFilter;
     mSuccess = scenario.mSuccess;
 }
コード例 #4
0
ファイル: HookupScenario.cs プロジェクト: Robobeurre/NRaas
 protected HookupScenario(HookupScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSeperateAdultStory = scenario.mSeperateAdultStory;
     mSuccess = scenario.mSuccess;
 }
コード例 #5
0
ファイル: DownsizeScenario.cs プロジェクト: Robobeurre/NRaas
 protected DownsizeScenario(DownsizeScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mbShouldFire = scenario.mbShouldFire;
 }
コード例 #6
0
 protected TraitAssignScenario(TraitAssignScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mTrait = scenario.mTrait;
     mSuccess = scenario.mSuccess;
 }
コード例 #7
0
ファイル: BloomScenario.cs プロジェクト: Robobeurre/NRaas
 protected BloomScenario(BloomScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mLocale = scenario.mLocale;
 }
コード例 #8
0
ファイル: DerisionScenario.cs プロジェクト: Robobeurre/NRaas
 protected DerisionScenario(DerisionScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mNemesis = scenario.mNemesis;
 }
コード例 #9
0
ファイル: ShindigScenario.cs プロジェクト: Robobeurre/NRaas
 protected ShindigScenario(ShindigScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mChanceOfHomeLot = scenario.mChanceOfHomeLot;
     mPartyAttire = scenario.mPartyAttire;
     mSuccess = scenario.mSuccess;
 }
コード例 #10
0
ファイル: LearnScenario.cs プロジェクト: Robobeurre/NRaas
 protected LearnScenario(LearnScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mSuccess = scenario.mSuccess;
     mAllowSkill = scenario.mAllowSkill;
     mAllowNormal = scenario.mAllowNormal;
 }
コード例 #11
0
 protected SendToHospitalScenario(SendToHospitalScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mType = scenario.mType;
     mInjuredStory = scenario.mInjuredStory;
     mSuccess = scenario.mSuccess;
 }
コード例 #12
0
ファイル: InvestScenario.cs プロジェクト: Robobeurre/NRaas
 protected InvestScenario(InvestScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mAllowMultiple = scenario.mAllowMultiple;
     mSuccess = scenario.mSuccess;
 }
コード例 #13
0
ファイル: HoosegowScenario.cs プロジェクト: Robobeurre/NRaas
 protected HoosegowScenario(HoosegowScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mChance = scenario.mChance;
     mBail = scenario.mBail;
     mSuccess = scenario.mSuccess;
 }
コード例 #14
0
ファイル: RecruitScenario.cs プロジェクト: Robobeurre/NRaas
 protected RecruitScenario(RecruitScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mAllowSteal = scenario.mAllowSteal;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     // mFail = scenario.mFail;
 }
コード例 #15
0
ファイル: ArsonScenario.cs プロジェクト: Robobeurre/NRaas
 protected ArsonScenario(ArsonScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mAllowInjury = scenario.mAllowInjury;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail = scenario.mAllowGoToJail;
 }
コード例 #16
0
ファイル: RefundScenario.cs プロジェクト: Robobeurre/NRaas
 protected RefundScenario(RefundScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAlterKey = scenario.mAlterKey;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess = scenario.mSuccess;
 }
コード例 #17
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;
 }
コード例 #18
0
ファイル: FineScenario.cs プロジェクト: Robobeurre/NRaas
 protected FineScenario(FineScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess = scenario.mSuccess;
     mAllowDebt = scenario.mAllowDebt;
 }
コード例 #19
0
ファイル: TorchScenario.cs プロジェクト: Robobeurre/NRaas
 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;
 }
コード例 #20
0
ファイル: StealScenario.cs プロジェクト: Robobeurre/NRaas
 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;
 }
コード例 #21
0
ファイル: LeaveEmScenario.cs プロジェクト: Robobeurre/NRaas
        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);
        }
コード例 #22
0
ファイル: GiveCashScenario.cs プロジェクト: Robobeurre/NRaas
 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;
 }
コード例 #23
0
ファイル: CanoodleScenario.cs プロジェクト: Robobeurre/NRaas
 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;
 }
コード例 #24
0
ファイル: BurgleScenario.cs プロジェクト: Robobeurre/NRaas
 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;
 }
コード例 #25
0
ファイル: FightScenarioHelper.cs プロジェクト: yakoder/NRaas
        public bool Parse(XmlDbRow row, StoryProgressionObject manager, IUpdateManager updater, ref string error)
        {
            mFightScoring = row.GetString("FightScoring");

            if (!row.Exists("AllowGoToJail"))
            {
                error = "AllowGoToJail missing";
                return(false);
            }

            mAllowGoToJail = row.GetBool("AllowGoToJail");

            mActorAllowInjury  = row.GetBool("AllowInjury") || row.GetBool("ActorAllowInjury");
            mTargetAllowInjury = row.GetBool("AllowInjury") || row.GetBool("TargetAllowInjury");

            mChanceOfDeath = new IntegerOption.OptionValue(-1);

            if (row.Exists("ChanceOfDeath"))
            {
                if (!mChanceOfDeath.Parse(row, "ChanceOfDeath", manager, updater, ref error))
                {
                    return(false);
                }
            }

            mBail = row.GetInt("Bail");

            mSuccess = new WeightScenarioHelper(mOrigin);
            if (!mSuccess.Parse(row, manager, updater, "Success", ref error))
            {
                return(false);
            }

            mFailure = new WeightScenarioHelper(mOrigin);
            if (!mFailure.Parse(row, manager, updater, "Failure", ref error))
            {
                return(false);
            }

            mExtremeFailure = new WeightScenarioHelper(mOrigin);
            if (!mExtremeFailure.Parse(row, manager, updater, "ExtremeFailure", ref error))
            {
                return(false);
            }

            return(true);
        }
コード例 #26
0
ファイル: TorchScenario.cs プロジェクト: Robobeurre/NRaas
        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;
                }
            }

            if (!row.Exists("AllowInjury"))
            {
                error = "AllowInjury missing";
                return false;
            }

            mAllowInjury = row.GetBool("AllowInjury");

            mSneakinessScoring = row.GetString("SneakinessScoring");

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

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

            mFailure = new WeightScenarioHelper(Origin.FromFire);
            if (!mFailure.Parse(row, Manager, this, "Failure", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
コード例 #27
0
ファイル: FineScenario.cs プロジェクト: Robobeurre/NRaas
        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);
        }
コード例 #28
0
ファイル: LearnScenario.cs プロジェクト: Robobeurre/NRaas
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mAllowSkill = row.GetBool("AllowSkill");
            mAllowNormal = row.GetBool("AllowNormal");

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

            return base.Parse(row, ref error);
        }
コード例 #29
0
ファイル: DownsizeScenario.cs プロジェクト: Robobeurre/NRaas
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mbShouldFire = row.GetBool("ShouldFire");

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

            return base.Parse(row, ref error);
        }
コード例 #30
0
ファイル: InvestScenario.cs プロジェクト: Robobeurre/NRaas
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            if (row.Exists("AllowMultiple"))
            {
                mAllowMultiple = row.GetBool("AllowMultiple");
            }

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

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

            return base.Parse(row, ref error);
        }
コード例 #31
0
ファイル: HoosegowScenario.cs プロジェクト: Robobeurre/NRaas
        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);
        }