public SmallSaucer(Canvas parent, Brush stroke, Brush fill, Color glow, int thickness, int pointValue, double difficulty, Point center, double speed, PlayerShip player) : base(center, pointValue, difficulty, new List <Ordnance>(), new List <Effect>())
 {
     Enemy           = player;
     Parent          = parent;
     IsDestroyed     = false;
     CanFire         = true;
     Speed           = speed;
     Geometry        = new Draw(stroke, fill, thickness).Lines;
     Geometry.Points = new Plot(this, center).Points;
     Geometry.Effect = new FX(glow).Glow;
 }
Beispiel #2
0
        public MotherShip(Canvas parent, int pointValue, double difficulty, int hitsToDestroy, Brush stroke, Brush fill, Color glow, int thickness, Point center, double speed, PlayerShip player) : base(center, pointValue, difficulty, new List <Ordnance>(), new List <Effect>())
        {
            Enemy           = player;
            Parent          = parent;
            HitsToDestroy   = hitsToDestroy;
            IsDestroyed     = false;
            CanFireBullet   = true;
            Speed           = speed;
            LaserCooldown   = 900;
            Geometry        = new Draw(stroke, fill, thickness).Lines;
            Geometry.Points = new Plot(this, center).Points;
            Geometry.Effect = new FX(glow).Glow;

            OffsetX = -.1 * Speed;
            OffsetY = 0;

            Effect e = new ChargeEffect(new Point(Center.X, Center.Y + 60), Brushes.Purple, Brushes.White, SaucerColor, 900, OffsetX, OffsetY);

            Effects.Add(e);
            AddToDisplay(e);
        }