public FootballClub(int iD, string name, string longName, string sixLetterName, string city, int leagueID, string nation, int yearFounded, string status, string homeStadium, Vector3 teamColour, int homeStadiumCapacity, List <FootballPlayer> squad, FootballManager manager, FootballChairman chairman) { this.ID = iD; this.Name = name; this.LongName = longName; this.SixLetterName = sixLetterName; this.City = city; this.LeagueID = leagueID; this.Nation = nation; this.YearFounded = yearFounded; this.Status = status; this.HomeStadium = homeStadium; this.TeamColour = teamColour; this.HomeStadiumCapacity = homeStadiumCapacity; this.Squad = squad; RegisterSquadToClub(this.Squad); this.Reputation = (int)Math.Min(Math.Round(this.HomeStadiumCapacity * 0.11f, 0), 10000); this.Money = this.HomeStadiumCapacity * 7000; this.Value = (this.Reputation * 75000) + this.Money; this.Morale = 10; this.BoardHappiness = 80; this.Manager = manager; this.Manager?.SetCurrentClub(this); this.Chairman = chairman; this.Chairman?.SetCurrentClub(this); }
public void UpdateManager(FootballManager manager) { this.Manager = manager; this.BoardHappiness = 80; }