public PlayerBullet(Player p, Graphics g, LeftEnemy objLeft, Enemy enemy, FinalBoss fb)
 {
     this.g       = g;
     this.p       = p;
     this.objLeft = objLeft;
     this.fb      = fb;
     this.enemy   = enemy;
     tile         = new Bitmap(Properties.Resources.Bullet);
 }
 public int Level3()
 {
     if (once == 0)
     {
         enemy.GetSetLoc.x   = this.obj.ClientSize.Width + enemy.GetSetTile.Width;
         objLeft.GetSetLoc.x = this.obj.ClientSize.Width + objLeft.GetSetTile.Width;
         once++;
         return(2);
     }
     one = 20;
     if (fb == null)
     {
         fb = new FinalBoss(obj, g, p);
     }
     if (fb.GetSetHealth <= 0)
     {
         return(3);
     }
     fb.render();
     fb.MoveEnemy();
     return(0);
 }
Beispiel #3
0
 public void updateFinalBoss(FinalBoss fb)
 {
     this.fb = fb;
 }