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