public override decimal GetStat(NFLWeek week) { decimal stat = 0.0M; // important stat is sacks made // determine which game NFLGame game = week.GameFor(Team.TeamCode); if (game != null) { // get sacks stat = Utility.TflWs.GetTotStats(Team.TeamCode, RosterLib.Constants.K_QUARTERBACK_SACKS, week.Season, week.ZeroWeek(), game.GameCode); } else { stat = -1.0M; } return(stat); }
public override decimal GetStat(NFLWeek week) { int stat = 0; // important stat is FG // determine which game NFLGame game = week.GameFor(Team.TeamCode); if (game != null) { // get FG allowed NflTeam opp = game.OpponentTeam(Team.TeamCode); stat = Utility.TflWs.GetTotTeamScoresFor(RosterLib.Constants.K_SCORE_FIELD_GOAL, opp.TeamCode, week.Season, week.ZeroWeek(), game.GameCode); } else { stat = -1; } return(stat); }
public override decimal GetStat(NFLWeek week) { int stat = 0; // important stat is Tdp // determine which game NFLGame game = week.GameFor(Team.TeamCode); if (game != null) { // get Tdp stat = Utility.TflWs.GetTotTeamScoresFor(RosterLib.Constants.K_SCORE_TD_PASS, Team.TeamCode, week.Season, week.ZeroWeek(), game.GameCode); } else { stat = -1; } return(stat); }