/// <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)]; } }
/// <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) { }
//protected const int maxIterationCount = 50; public SpaceObjectFactory(ScreenSpaceController screenSpaceController, Image image) { this.screenSpaceController = screenSpaceController; this.image = image; }