Ejemplo n.º 1
0
 public EnemyBullet(Vector location, Vector velocity, double step, string imageName = "enemy-bullet.png", IMovingPattern pattern = null)
 {
     Location      = location;
     this.velocity = velocity.Normalize();
     this.step     = step;
     this.pattern  = pattern;
     image         = imageName;
 }
Ejemplo n.º 2
0
 public Enemy(Point location, Game game, IMovingPattern pattern, double enemyStep, double bulletStep,
              string imageName = "enemy.png", bool isImmortal = false)
 {
     Location        = new Vector(location);
     this.game       = game;
     MovingPattern   = pattern;
     this.enemyStep  = enemyStep;
     this.bulletStep = bulletStep;
     this.imageName  = imageName;
     IsImmortal      = isImmortal;
 }
Ejemplo n.º 3
0
 public Boss(Point location, Game game, IMovingPattern pattern,
             double enemyStep, double bulletStep, bool isImmortal = false)
     : base(location, game, pattern, enemyStep, bulletStep, "Monster.png", isImmortal)
 {
 }