コード例 #1
0
        public ModalityCompatibility(NineStarKiModel nineStarKiModel1, NineStarKiModel nineStarKiModel2, CompatibilityScoreModel score)
        {
            Score = score;
            IsCharacterModalitySame   = nineStarKiModel1.MainEnergy.Modality == nineStarKiModel2.MainEnergy.Modality;
            IsFundamentalModalitySame = nineStarKiModel1.CharacterEnergy.Modality == nineStarKiModel2.CharacterEnergy.Modality;
            IsSurfaceModalitySame     = nineStarKiModel1.SurfaceEnergy.Modality == nineStarKiModel2.SurfaceEnergy.Modality;

            CalculateScore();
        }
コード例 #2
0
        public GenderCompatibility(NineStarKiModel nineStarKiModel1, NineStarKiModel nineStarKiModel2, CompatibilityScoreModel score)
        {
            _nineStarKiModel1       = nineStarKiModel1;
            _nineStarKiModel2       = nineStarKiModel2;
            Score                   = score;
            IsFundamtenalGenderSame = nineStarKiModel1.MainEnergy.YinYang == nineStarKiModel2.MainEnergy.YinYang;
            IsCharacterGenderSame   = nineStarKiModel1.CharacterEnergy.YinYang == nineStarKiModel2.CharacterEnergy.YinYang;

            CalculateScore();
        }
コード例 #3
0
        public ElementCompatibility(NineStarKiModel nineStarKiModel1, NineStarKiModel nineStarKiModel2,
                                    CompatibilityScoreModel score)
        {
            _nineStarKiModel1 = nineStarKiModel1;
            _nineStarKiModel2 = nineStarKiModel2;
            FundamentalEnergiesTransformationType = nineStarKiModel1.MainEnergy.Energy.GetTransformationType(nineStarKiModel2.MainEnergy.Energy);

            FundamentalEnergy1ToCharacterEnergy2TransformationType = nineStarKiModel1.MainEnergy.Energy.GetTransformationType(nineStarKiModel2.CharacterEnergy.Energy);

            FundamentalEnergy1ToSurfaceEnergy2TransformationType = nineStarKiModel1.MainEnergy.Energy.GetTransformationType(nineStarKiModel2.SurfaceEnergy.Energy);

            FundamentalEnergy2ToCharacterEnergy1TransformationType = nineStarKiModel2.MainEnergy.Energy.GetTransformationType(nineStarKiModel1.CharacterEnergy.Energy);

            FundamentalEnergy2ToSurfaceEnergy1TransformationType = nineStarKiModel2.MainEnergy.Energy.GetTransformationType(nineStarKiModel1.SurfaceEnergy.Energy);

            CharacterEnergiesTransformationType = nineStarKiModel1.CharacterEnergy.Energy.GetTransformationType(nineStarKiModel2.CharacterEnergy.Energy);

            CharacterEnergy1ToSurfaceEnergy2TransformationType = nineStarKiModel1.CharacterEnergy.Energy.GetTransformationType(nineStarKiModel2.SurfaceEnergy.Energy);

            CharacterEnergy2ToSurfaceEnergy1TransformationType = nineStarKiModel2.CharacterEnergy.Energy.GetTransformationType(nineStarKiModel1.SurfaceEnergy.Energy);

            SurfaceEnergiesTransformationType = nineStarKiModel1.SurfaceEnergy.Energy.GetTransformationType(nineStarKiModel2.SurfaceEnergy.Energy);

            Score = score;

            FundamentalElementsTransformationDetails = GetFundamentalElementsTransformationDetails();

            CharacterElementsTransformationDetails = GetCharacterElementsTransformationDetails();

            FundamentalElementsCompatibilityDetails = GetElementCompatibilityDetails(_nineStarKiModel1.MainEnergy, _nineStarKiModel2.MainEnergy);

            FundamentalElementsCompatibilityDetailsTitle = GetFundamentalElementsCompatibilityTitle();

            CharacterElementsCompatibilityDetails = GetElementCompatibilityDetails(_nineStarKiModel1.CharacterEnergy, _nineStarKiModel2.CharacterEnergy);

            CalculateScore();

            Score.CalculateAverages();

            AllOtherElementsCompatibility = GetElementsCompatibility();
        }
コード例 #4
0
        public CompatibilityModel(NineStarKiModel nineStarKiModel1, NineStarKiModel nineStarKiModel2)
        {
            NineStarKiModel1 = nineStarKiModel1;
            NineStarKiModel2 = nineStarKiModel2;

            CompatibilityDetails = new CompatibilityDetailsModel(this);

            FundamentalEnergiesCompatibility = TemplateProcessor.PopulateTemplate(GetFundamentalEnergiesCompatibilityDetails(), new
            {
                Person1                        = FirstFundamentalEnergyPersonName,
                Person2                        = SecondFundamentalEnergyPersonName,
                Person1Proper                  = FirstFundamentalEnergyPersonName.ToProperCase(),
                Person2Proper                  = SecondFundamentalEnergyPersonName.ToProperCase(),
                Gender1PossessivePronoun       = FirstFundamentalEnergyGenderPossessivePronoun,
                Gender2PossessivePronoun       = SecondFundamentalEnergyGenderPossessivePronoun,
                Gender1Pronoun                 = FirstFundamentalEnergyGenderPronoun,
                Gender2Pronoun                 = SecondFundamentalEnergyGenderPronoun,
                Gender1PossessivePronounProper = FirstFundamentalEnergyGenderPossessivePronoun.ToProperCase(),
                Gender2PossessivePronounProper = SecondFundamentalEnergyGenderPossessivePronoun.ToProperCase(),
                Gender1PronounProper           = FirstFundamentalEnergyGenderPronoun.ToProperCase(),
                Gender2PronounProper           = SecondFundamentalEnergyGenderPronoun.ToProperCase()
            });

            SexualChemistryDetails = TemplateProcessor.PopulateTemplate(GetSexualChemistryDescription(), new
            {
                Person1                        = FirstPersonNameWithArticle,
                Person2                        = SecondPersonNameWithArticle,
                Person1Proper                  = FirstPersonNameWithArticle.ToProperCase(),
                Person2Proper                  = SecondPersonNameWithArticle.ToProperCase(),
                Gender1PossessivePronoun       = NineStarKiModel1?.PersonModel?.GenderPossessivePronoun,
                Gender2PossessivePronoun       = NineStarKiModel2?.PersonModel?.GenderPossessivePronoun,
                Gender1Pronoun                 = NineStarKiModel1?.PersonModel?.GenderPronoun,
                Gender2Pronoun                 = NineStarKiModel2?.PersonModel?.GenderPronoun,
                Gender1PossessivePronounProper = NineStarKiModel1?.PersonModel?.GenderPossessivePronoun.ToProperCase(),
                Gender2PossessivePronounProper = NineStarKiModel2?.PersonModel?.GenderPossessivePronoun.ToProperCase(),
                Gender1PronounProper           = NineStarKiModel1?.PersonModel?.GenderPronoun.ToProperCase(),
                Gender2PronounProper           = NineStarKiModel2?.PersonModel?.GenderPronoun.ToProperCase()
            });
        }
コード例 #5
0
 public CompatibilityModel()
 {
     NineStarKiModel1 = new NineStarKiModel();
     NineStarKiModel2 = new NineStarKiModel();
 }