public AbstractBullet(BaseEnemy target, Point location)
 {
     this.target = target;
     Location    = location;
     NameImage   = "Bullet.png";
     Speed       = 50;
     Damage      = 1;
 }
 public MagicBullet(BaseEnemy target, Point location)
     : base(target, location)
 {
     NameImage = "MagicBullet.png";
     Damage    = 4;
 }
Esempio n. 3
0
 public ArrowBullet(BaseEnemy target, Point location)
     : base(target, location)
 {
     NameImage = "ArrowBullet.png";
     Damage    = 2;
 }
 protected override AbstractBullet СreateBullet(BaseEnemy enemy)
 {
     return(new MagicBullet(enemy, Location));
 }
 protected abstract AbstractBullet СreateBullet(BaseEnemy enemy);