using System.Collections.Generic; using System.Linq; using Chernobyl.Account; using Chernobyl.Collections.Generic.Event; namespace Chernobyl.Game.Group { /// /// A basic implementation of an . /// public class Team : DecoratingEventCollection, ITeam { /// /// Initializes a new instance of the class. /// public Team() : this(Array.Empty, Array.Empty) {} /// /// Initializes a new instance of the class. /// /// The individuals that represent the team. /// The opponents of this instance. public Team(IEnumerable players, IEnumerable enemies) : base(new DecoratingEventList()) { Players = new DecoratingEventCollection(players.ToList()); Enemies = new DecoratingEventCollection(enemies.ToList()); } /// /// The individuals that represent the team. /// public IEventCollection Players { get; private set; } /// /// The groups that act as an antagonist towards this group. /// public IEventCollection Enemies { get; private set; } } }