public FieldGoalResult( string gameCodeIn, SeasonOpposition soIn ) { FgCount = soIn.Metric; gameCode = gameCodeIn; Opponent = soIn.Opponent; So = soIn; bLastYear = ( Season() == "2004" ) ? true : false; }
public FieldGoalResult(string gameCodeIn, SeasonOpposition soIn) { FgCount = soIn.Metric; gameCode = gameCodeIn; Opponent = soIn.Opponent; So = soIn; bLastYear = (Season() == "2004") ? true : false; }
public void AddWeeklyOutput(int week, int output, string opponent, bool bHome) { if (week > 0) { _total += output; var so = new SeasonOpposition(opponent, bHome, output); _opps[week - 1] = so; } }
public void AddPrevWeeklyOutput(int week, SeasonOpposition soIn) { if (week > 0) { if (week < 18) { _prevOpp[week - 1] = soIn; } } }
public NFLOutputMetric(string metricIn, NFLPlayer playerIn, NflTeam teamIn) { _metricName = metricIn; _player = playerIn; _team = teamIn; _team.Wins = 0; _team.Losses = 0; _prevOpp = new SeasonOpposition[KOpponents]; _opps = new SeasonOpposition[KOpponents]; for (var i = 0; i < KOpponents; i++) { _opps[i] = new SeasonOpposition("BYE", true, 0); _prevOpp[i] = new SeasonOpposition(" ", true, 0); } }