コード例 #1
0
ファイル: RacingTeam.cs プロジェクト: Simocracy/SportSim
 /// <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;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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));
 }