public void moveAll() { foreach (Player player in playerList) { player.Move(); } if (projectiles.Count != 0) { foreach (Projectile proj in projectiles) { if (proj.Active) { proj.Move(); } else { removeProjList.Add(proj); } } } if (enemyList.Count != 0) { foreach (Enemy enemy in enemyList) { if (!enemy.TargetPlayer.Equals("")) { enemy.Rotation = AIUtil.getAnglePointingAt(enemy.Position, getPlayer(enemy.TargetPlayer).Position); enemy.Accelerate(); enemy.Move(); } } } }