void BuildEntityText(Combat.EntityCollection collection) { if (collection == null) throw new ArgumentNullException("collection"); Int32 players, helpers, explods, projectiles; collection.CountEntities(out players, out helpers, out explods, out projectiles); m_stringbuilder.AppendFormat("Entity Count: {0}{1}", players + helpers + explods + projectiles, Environment.NewLine); m_stringbuilder.AppendFormat("Players: {0} Helpers: {1}{2}", players, helpers, Environment.NewLine); m_stringbuilder.AppendFormat("Explods: {0} Projectiles: {1}{2}", explods, projectiles, Environment.NewLine); m_stringbuilder.AppendLine(); }