/// <summary> /// Erstellt ein neues Rennteam /// </summary> /// <param name="id">ID des Teams</param> /// <param name="name">Name des Teams</param> /// <param name="state">Staat des Teams</param> /// <param name="strength">Stärke des Teams</param> public RacingTeam(int id, string name, State state, int strength, ERacingSeries racingSeries) : base(id, name) { State = state; Strength = strength; RacingSeries = racingSeries; }
/// <summary> /// Erstellt ein neues <see cref="RacingTeam"/>-Objekt und fügt es der Liste hinzu /// </summary> /// <param name="name">Name des Teams</param> /// <param name="state">Staat des Teams</param> /// <param name="strength">Stärke des Teams</param> /// <param name="racingSeries">Rennserie, in der das Team startet</param> public void Create(string name, State state, int strength, ERacingSeries racingSeries) { Add(new RacingTeam(GetNewID(), name, state, strength, racingSeries)); }