Ejemplo n.º 1
0
 public Flora(FloraSpecies thisSpecies, Point location)
 {
     AssignProperties(thisSpecies, location);
 }
Ejemplo n.º 2
0
        void AssignProperties(FloraSpecies thisSpecies, Point location)
        {
            gridLocation = location;

            if (thisSpecies == FloraSpecies.MoonTree)
            {
                thisFloraType    = FloraType.Tree;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Frost");
                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                hoursAvailable.Add(20);
                hoursAvailable.Add(21);
                hoursAvailable.Add(22);
                hoursAvailable.Add(23);
                hoursAvailable.Add(0);
                hoursAvailable.Add(1);
                hoursAvailable.Add(2);
                hoursAvailable.Add(3);
            }
            else if (thisSpecies == FloraSpecies.SweetWheat)
            {
                thisFloraType    = FloraType.Grass;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.BitterWheat)
            {
                thisFloraType    = FloraType.Grass;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.SourWheat)
            {
                thisFloraType    = FloraType.Grass;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Dankweed)
            {
                thisFloraType    = FloraType.Grass;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                hoursAvailable.Add(4);
                hoursAvailable.Add(5);
                hoursAvailable.Add(16);
                hoursAvailable.Add(17);
            }
            else if (thisSpecies == FloraSpecies.Tishelbush)
            {
                thisFloraType    = FloraType.Bush;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Bloomshroom)
            {
                thisFloraType    = FloraType.Fungus;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Dew");

                for (int i = 6; i < 18; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.LakeWeed)
            {
                thisFloraType    = FloraType.Algae;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Frost");
                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.SurfPalm)
            {
                thisFloraType    = FloraType.Tree;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Light");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Darkpine)
            {
                thisFloraType    = FloraType.Tree;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Frost");
                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");

                hoursAvailable.Add(20);
                hoursAvailable.Add(21);
                hoursAvailable.Add(22);
                hoursAvailable.Add(23);
                hoursAvailable.Add(0);
                hoursAvailable.Add(1);
                hoursAvailable.Add(2);
                hoursAvailable.Add(3);
            }
            else if (thisSpecies == FloraSpecies.FiremelonBush)
            {
                thisFloraType    = FloraType.Bush;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 10; i < 20; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Chillcap)
            {
                thisFloraType    = FloraType.Fungus;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Frost");
                monthsAvailable.Add("Dew");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Stinkmoss)
            {
                thisFloraType    = FloraType.Algae;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 10; i < 20; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Bramblebush)
            {
                thisFloraType    = FloraType.Bush;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Frost");
                monthsAvailable.Add("Storm");
                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 4; i < 12; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.FlameLily)
            {
                thisFloraType    = FloraType.Flower;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Light");

                for (int i = 7; i < 17; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.FloatingAqualily)
            {
                thisFloraType    = FloraType.Flower;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Flame");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 7; i < 17; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Dandytiger)
            {
                thisFloraType    = FloraType.Flower;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");
                monthsAvailable.Add("Light");

                for (int i = 0; i < 24; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
            else if (thisSpecies == FloraSpecies.Dingushroom)
            {
                thisFloraType    = FloraType.Fungus;
                thisFloraSpecies = thisSpecies;

                monthsAvailable.Add("Earth");
                monthsAvailable.Add("Spirit");
                monthsAvailable.Add("Dew");

                for (int i = 16; i < 22; ++i)
                {
                    hoursAvailable.Add(i);
                }
            }
        }