Ejemplo n.º 1
0
 public void Update(GameTime gameTime)
 {
     Level.Update(gameTime);
     Globals.Camera.Update(gameTime);
     Beings.ForEach(b => b.Update(gameTime));
     Enemies = Enemies.Where(e => e.IsActive).ToList();
     Enemies.ForEach(e => e.GetAI().Run(gameTime));
     Allies = Allies.Where(e => e.IsActive).ToList();
     Allies.ForEach(e => e.GetAI().Run(gameTime));
     Missiles = Missiles.Where(m => m.IsActive).ToList();
     Missiles.ForEach(m => m.Update(gameTime));
     Items = Items.Where(i => i.IsActive).ToList();
     Items.ForEach(i => i.Update(gameTime));
     DamageTexts = DamageTexts.Where(d => d.IsActive).ToList();
     DamageTexts.ForEach(d => d.Update(gameTime));
     EnemyCreatorFactory.Update(gameTime);
 }