public SelectedPowerUpController(Dictionary<PowerUpType, PowerUp> powerUps, Circle cursorCircle)
        {
            PowerUps = powerUps;
            CursorCircle = cursorCircle;
            PowerUpToBuy = PowerUpType.None;

            PowerUpsCircles = new Dictionary<PowerUpType, Circle>(PowerUpTypeComparer.Default);

            foreach (var powerUp in PowerUps)
                PowerUpsCircles.Add(powerUp.Key, new Circle(powerUp.Value.BuyPosition, 10));
        }
Exemplo n.º 2
0
 public ShieldsCollisions()
 {
     Objects = new List<ICollidable>();
     Output = new List<KeyValuePair<ICollidable, Bullet>>();
     ObjectCircle = new Circle();
 }
 public StartingPathCollisions()
 {
     Output = new List<KeyValuePair<CelestialBody, Bullet>>();
     StartingPathObjectCircle = new Circle();
 }