public MushroomRule(IDataProvider dataProvider, int generacion, Mushroom mushroom, char classValue) : this(dataProvider, generacion, classValue) { this.Rule = mushroom; }
public bool IsEqual(Mushroom another) { if (classValue != '0' && another.classValue != '0' && another.classValue != classValue) return false; if (capShape != '0' && another.capShape != '0' && another.capShape != capShape) return false; if (capSurface != '0' && another.capSurface != '0' && another.capSurface != capSurface) return false; if (capColor != '0' && another.capColor != '0' && another.capColor != capColor) return false; if (bruises != '0' && another.bruises != '0' && another.bruises != bruises) return false; if (odor != '0' && another.odor != '0' && another.odor != odor) return false; if (gillAttachment != '0' && another.gillAttachment != '0' && another.gillAttachment != gillAttachment) return false; if (gillSpacing != '0' && another.gillSpacing != '0' && another.gillSpacing != gillSpacing) return false; if (gillSize != '0' && another.gillSize != '0' && another.gillSize != gillSize) return false; if (gillColor != '0' && another.gillColor != '0' && another.gillColor != gillColor) return false; if (stalkShape != '0' && another.stalkShape != '0' && another.stalkShape != stalkShape) return false; if (stalkRoot != '0' && another.stalkRoot != '0' && another.stalkRoot != stalkRoot) return false; if (stalkSurfaceAboveRing != '0' && another.stalkSurfaceAboveRing != '0' && another.stalkSurfaceAboveRing != stalkSurfaceAboveRing) return false; if (stalkSurfaceBelowRing != '0' && another.stalkSurfaceBelowRing != '0' && another.stalkSurfaceBelowRing != stalkSurfaceBelowRing) return false; if (stalkColorAboveRing != '0' && another.stalkColorAboveRing != '0' && another.stalkColorAboveRing != stalkColorAboveRing) return false; if (stalkColorBelowRing != '0' && another.stalkColorBelowRing != '0' && another.stalkColorBelowRing != stalkColorBelowRing) return false; if (veilType != '0' && another.veilType != '0' && another.veilType != veilType) return false; if (veilColor != '0' && another.veilColor != '0' && another.veilColor != veilColor) return false; if (ringNumber != '0' && another.ringNumber != '0' && another.ringNumber != ringNumber) return false; if (ringType != '0' && another.ringType != '0' && another.ringType != ringType) return false; if (sporePrintColor != '0' && another.sporePrintColor != '0' && another.sporePrintColor != sporePrintColor) return false; if (population != '0' && another.population != '0' && another.population != population) return false; if (habitat != '0' && another.habitat != '0' && another.habitat != habitat) return false; return true; }