示例#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
            };
        }