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