public object Clone() { SensoryFeature visual = (SensoryFeature)Visual.Clone(); SensoryFeature auditory = (SensoryFeature)Auditory.Clone(); SensoryFeature smell = (SensoryFeature)Smell.Clone(); SensoryFeature taste = (SensoryFeature)Taste.Clone(); return(new SensoryDisplay(visual, auditory, smell, taste)); }
public void UpdateFrom(SensoryFeature other) { if (other.Value <= IGNORE_UPDATE) { return; } Value = other.Value; Strength = InitialStrength = other.Strength; }
public SensoryDisplay(SensoryFeature visual, SensoryFeature auditory, SensoryFeature smell, SensoryFeature taste) { Visual = visual; Auditory = auditory; Smell = smell; Taste = taste; AllFeatures = new List <SensoryFeature>() { Visual, Auditory, Smell, Taste }; }