public override bool Check(Parcel parcel, Func <double> random, INamedDataCollection metadata)
        {
            var min  = _min.SelectFloatValue(random, metadata);
            var max  = _max.SelectFloatValue(random, metadata);
            var area = parcel.Area();

            return(area >= min && area <= max);
        }
Example #2
0
        public bool Discard(Parcel parcel, Func <double> random)
        {
            var a = parcel.Area();

            return(a < _hardMinArea);
        }
Example #3
0
 public float?TerminationChance(Parcel parcel)
 {
     return(parcel.Area() < _maxArea ? _terminationChance : 0);
 }