Esempio n. 1
0
 private void GhostsShoot()
 {
     foreach (Ghost.MonogameGhost g in spawner.Ghosts)
     {
         if (g.hasShot == false && g.Location.Y >= this.GraphicsDevice.Viewport.Height / 7)
         {
             g.hasShot = true;
             ShotHandler.Shot s = new ShotHandler.Shot(this);
             s.Location  = g.Location;
             s.Speed     = 250;
             s.Direction = PS.Location - g.Location;
             s.Direction.Normalize();
             SM.EnemyShoot(s);
         }
     }
 }
Esempio n. 2
0
 protected virtual void enemyRemoveShot(Shot s)
 {
     this.EnemyShots.Remove(s);
 }
Esempio n. 3
0
 protected virtual void addEnemyShot(Shot s)
 {
     this.EnemyShots.Add(s);
 }
Esempio n. 4
0
 protected virtual void removeShot(Shot s)
 {
     this.Shots.Remove(s);
 }
Esempio n. 5
0
 protected virtual void addShot(Shot s)
 {
     this.Shots.Add(s);
 }