Beispiel #1
0
            public int Score(AgeGenderMatchScoring scoring, DualSimScoringParameters parameters)
            {
                if (!scoring.IsHit(mAgeGender))
                {
                    return(0);
                }

                return(scoring.Score(parameters));
            }
Beispiel #2
0
        protected bool BaseIsHit(DualSimScoringParameters parameters)
        {
            float liking = 0;

            Relationship relationship = Relationship.Get(parameters.Other, parameters.Actor, false);

            if (relationship != null)
            {
                liking = relationship.LTR.Liking;
            }

            return(liking >= mGate);
        }
Beispiel #3
0
        public override bool IsHit(SimScoringParameters parameters)
        {
            DualSimScoringParameters dualParameters = parameters as DualSimScoringParameters;

            if (dualParameters != null)
            {
                Relationship relation = Relationship.Get(dualParameters.Other, dualParameters.Actor, false);
                if (relation == null)
                {
                    return(false);
                }

                if (dualParameters.Actor.Partner != dualParameters.Other)
                {
                    return(false);
                }
            }

            return(parameters.Actor.IsMarried);
        }
Beispiel #4
0
        public override bool IsHit(SimScoringParameters parameters)
        {
            if (parameters.Actor.Genealogy == null)
            {
                return(false);
            }

            SimDescription other = null;

            DualSimScoringParameters dualParam = parameters as DualSimScoringParameters;

            if (dualParam != null)
            {
                other = dualParam.Other;

                if ((other != null) && (other.Genealogy == null))
                {
                    return(false);
                }
            }

            foreach (SimDescription child in Helpers.Relationships.GetChildren(parameters.Actor))
            {
                if (!child.ChildOrBelow)
                {
                    continue;
                }

                if (child.Genealogy == null)
                {
                    continue;
                }

                if ((other == null) || (child.Genealogy.IsParentOrStepParent(other.Genealogy)))
                {
                    return(true);
                }
            }

            return(false);
        }
Beispiel #5
0
 public int Score(DualSimScoringParameters parameters)
 {
     return(Score(parameters as SimScoringParameters));
 }
Beispiel #6
0
 public int Score(DualLifetimeWantScoring scoring, DualSimScoringParameters parameters)
 {
     return(scoring.Score(scoring.mLTW == mLTW, parameters));
 }