Exemplo n.º 1
0
        private static Plant.Seed ChangeSeed(Plant.Seed s)
        {
            Plant.Seed n;

            do
            {
                n = (Plant.Seed)Generator.Random(Generator.Category.SEED);
            } while (n.GetType() == s.GetType());

            return(n);
        }
Exemplo n.º 2
0
        public virtual Plant Plant(Plant.Seed seed, int pos)
        {
            var plant = plants[pos];

            if (plant != null)
            {
                plant.Wither();
            }

            plant = seed.Couch(pos);
            plants.Add(pos, plant);

            GameScene.Add(plant);

            return(plant);
        }