Exemplo n.º 1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            for (int i = 0; i < shots.Count; ++i)
            {
                MovingTurretShot s = shots.ElementAt(i);
                s.Update(gameTime);
                if (s.lifetime_ms <= 0.0f)
                {
                    shots.Remove(s);
                }
            }
        }
Exemplo n.º 2
0
 public void RegisterShot(MovingTurretShot shot)
 {
     shot.Initialize();
     shots.Add(shot);
 }
 public void RegisterShot(MovingTurretShot shot)
 {
     shot.Initialize();
     shots.Add(shot);
 }