예제 #1
0
        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));
        }
예제 #2
0
        public void UpdateFrom(SensoryFeature other)
        {
            if (other.Value <= IGNORE_UPDATE)
            {
                return;
            }

            Value    = other.Value;
            Strength = InitialStrength = other.Strength;
        }
예제 #3
0
        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
            };
        }