/// <summary> /// Erstellt ein neues Team /// </summary> /// <param name="id">ID des Teams</param> /// <param name="name">Name des Teams</param> /// <param name="logo">Logo des Teams</param> /// <param name="state">Staat des Teams</param> /// <param name="stadium">Stadion des Teams</param> public Team(int id, string name, string logo, State state, Stadium stadium) : base(id, name) { Logo = logo; State = state; Stadium = stadium; }
/// <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 Stadion /// </summary> /// <param name="id">ID des Stadions</param> /// <param name="name">Name des Stadions</param> /// <param name="state">Staat in dem das Stadion liegt</param> /// <param name="city">Stadt in dem das Stadion liegt</param> /// <param name="capacity">Kapazität des Stadions</param> /// <param name="stadiumType">Typ des Stadions</param> public Stadium(int id, string name, State state, string city, int capacity, EStadiumType stadiumType) : base(id, name) { State = state; City = city; CapacityInt = capacity; StadiumType = stadiumType; }
/// <summary> /// Erstellt einen neuen Fahrer /// </summary> /// <param name="id">ID des Fahrers</param> /// <param name="name">Name des Fahrers</param> /// <param name="state">Staat des Fahrers</param> /// <param name="strengthStreet">Stärke auf Straßenkursen</param> /// <param name="strengthSpeedway">Stärke auf Speedways</param> /// <param name="strengthRally">Stärke auf Rallykursen</param> public RacingDriver(int id, string name, State state, int strengthStreet, int strengthSpeedway, int strengthRally) : base(id, name) { State = state; StrengthStreet = strengthStreet; StrengthSpeedway = strengthSpeedway; StrengthRally = strengthRally; }
private void Create() { Settings.States.Create( NameTextBox.Text, FlagTextBox.Text, (EContinent) Enum.Parse(typeof(EContinent), ContinentComboBox.SelectedValue.ToString())); _IsInNewMode = false; SelectedState = Settings.States.Last(); Settings.LogObjCreated(SelectedState); }
private void Delete() { Settings.States.Remove(SelectedState); MarkAllValid(); _IsInNewMode = false; Settings.LogDeleted(SelectedState); SelectedState = null; }
/// <summary> /// Erstellt ein neues Fußballteam /// </summary> /// <param name="name">Name des Teams</param> /// <param name="logo">Logo des Teams</param> /// <param name="isExternLogo">Angabe ob Logo extern (=nicht im Wiki) hochgeladen ist</param> /// <param name="goalkeeperStrength">Stärke des Torhüters</param> /// <param name="defenseStrength">Stärke der Verteidigung</param> /// <param name="midfieldStrength">Stärke des Mittelfelds</param> /// <param name="forwardStrength">Stärke der Offensive</param> /// <param name="state">Staat des Teams</param> /// <param name="stadium">Stadion des Teams</param> public FootballTeam(int id, string name, string logo, int goalkeeperStrength, int defenseStrength, int midfieldStrength, int forwardStrength, State state, Stadium stadium) : base(id, name, logo, state, stadium) { GoalkeeperStrength = goalkeeperStrength; DefenseStrength = defenseStrength; MidfieldStrength = midfieldStrength; ForwardStrength = forwardStrength; }
/// <summary> /// Erstellt einen neuen Fahrer /// </summary> /// <param name="id">ID des Fahrers</param> /// <param name="name">Name des Fahrers</param> /// <param name="state">Staat des Fahrers</param> public RacingDriver(int id, string name, State state) : this(id, name, state, 0, 0, 0) { }