Example #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);
         }
     }
 }
Example #2
0
 protected virtual void enemyRemoveShot(Shot s)
 {
     this.EnemyShots.Remove(s);
 }
Example #3
0
 protected virtual void addEnemyShot(Shot s)
 {
     this.EnemyShots.Add(s);
 }
Example #4
0
 protected virtual void removeShot(Shot s)
 {
     this.Shots.Remove(s);
 }
Example #5
0
 protected virtual void addShot(Shot s)
 {
     this.Shots.Add(s);
 }