コード例 #1
0
        public PlayerCharacter(string _archetype, Species _species, Value _soak, ThresholdValue _health, Defense _defense, CharacteristicSet _characteristics,
                               Equipment _equipment, Inventory _inventory, List <PAPISkill> _skillSet, List <Ability> _abilities, Career _career, CharacterAppearance _appearance,
                               GenderEnum _gender, List <GenderEnum> _genderPreferences, string _name, MotivationSet _motivationSet, List <CriticalInjury> _criticalInjuries,
                               ThresholdValue _strain, List <SkillEnum> _careerSkills) :
            base(_archetype, _species, _soak, _health, _defense, _characteristics, _equipment, _inventory, _skillSet, _abilities, _career, _appearance, _gender,
                 _genderPreferences)
        {
            this._name             = (_name == null || _name == "") ? "NOT_VALID" : _name;
            this._motivationSet    = (_motivationSet == null) ? new MotivationSet() : _motivationSet;
            this._criticalInjuries = (_criticalInjuries == null) ? new List <CriticalInjury>() : _criticalInjuries;
            this._strain           = (_strain == null) ? SpeciesHandler.GetInitialStrain(this._species._enum) : _strain;
            this._careerSkills     = (_careerSkills == null) ? new List <SkillEnum>() : _careerSkills;

            WfLogger.Log(this, LogLevel.DETAILED, "Created new PlayerCharacter " + this._name);
        }
コード例 #2
0
        public Nemesis(string _archetype, Species _species, Value _soak, ThresholdValue _health, Defense _defense, CharacteristicSet _characteristics,
                       Equipment _equipment, Inventory _inventory, List <PAPISkill> _skillSet, List <Ability> _abilities, Career _career, CharacterAppearance _appearance,
                       GenderEnum _gender, List <GenderEnum> _genderPreferences, int _relationshipToParty, List <CriticalInjury> _criticalInjuries, string _name,
                       MotivationSet _motivationSet, ThresholdValue _strain) :
            base(_archetype, _species, _soak, _health, _defense, _characteristics, _equipment, _inventory, _skillSet, _abilities, _career, _appearance, _gender,
                 _genderPreferences, _relationshipToParty, _criticalInjuries, _name, _motivationSet)
        {
            this._strain = (_strain == null || _strain._threshold == 0) ? new ThresholdValue(SpeciesHandler.GetInitialStrain(this._species._enum)) : _strain;

            WfLogger.Log(this, LogLevel.DETAILED, "Created new Nemesis " + this._name);
        }