Exemple #1
0
        /// <summary>
        /// Изображение аптечки генерируется случайным образом из общего списка
        /// </summary>
        /// <param name="screenSpaceController"></param>
        public MedicKitFactory(ScreenSpaceController screenSpaceController)
        {
            this.screenSpaceController = screenSpaceController;

            if (medicKitImages.Count > 0)
            {
                image = medicKitImages[Game.randomizer.Next(0, medicKitImages.Count)];
            }
        }
Exemple #2
0
        /// <summary>
        /// Изображение астероида генерируется случайным образом из общего списка
        /// </summary>
        /// <param name="screenSpaceController"></param>
        public AsteroidFactory(ScreenSpaceController screenSpaceController)
        {
            this.screenSpaceController = screenSpaceController;

            if (asteroidImages.Count > 0)
            {
                image = asteroidImages[Game.randomizer.Next(0, asteroidImages.Count)];
            }
        }
 public StaticObjectFactory(ScreenSpaceController screenSpaceController, Image image) : base(screenSpaceController, image)
 {
 }
Exemple #4
0
        //protected const int maxIterationCount = 50;

        public SpaceObjectFactory(ScreenSpaceController screenSpaceController, Image image)
        {
            this.screenSpaceController = screenSpaceController;
            this.image = image;
        }