Exemple #1
0
        public Biome(TempatureRange tempature, PressureRange pressure, double humidity, string name, Year startYear, Year endYear, string description, List <string> keywords)
        {
            Tempature   = tempature;
            Pressure    = pressure;
            Humidity    = humidity;
            Name        = name;
            StartYear   = startYear;
            EndYear     = endYear;
            Description = description;
            Keywords    = keywords;

            //These are done seperate.
            Biomes = new ObservableCollection <Biome>();
        }
Exemple #2
0
        public void Edit(ObservableCollection <Biome> biomes, TempatureRange tempature, PressureRange pressure, double humidity, string name, Year startYear, Year endYear, string description, List <string> keywords)
        {
            Tempature   = tempature;
            Pressure    = pressure;
            Humidity    = humidity;
            Name        = name;
            StartYear   = startYear;
            EndYear     = endYear;
            Description = description;
            Keywords    = keywords;

            //This differs from Construction in that it will generally pass the old biome and old energies back in.
            Biomes = biomes;
        }
Exemple #3
0
        public void CopyFrom(IBiological source)
        {
            BodyPlan     = source.BodyPlan;
            Reproduction = source.Reproduction;
            Senses       = source.Senses;
            Niche        = source.Niche;
            Social       = source.Social;
            Biochemistry = source.Biochemistry;
            //I dont want a shallow copy of the list, I dont want to pass the list.
            ObservableCollection <Relation> temp = new ObservableCollection <Relation>();

            foreach (Relation r in source.Relations)
            {
                temp.Add(r);
            }
            Relations = temp;

            Tempature = source.Tempature;
            Pressure  = source.Pressure;
        }