Exemplo n.º 1
0
        public void initialize(ISOMReportFile teamReportFile)
        {
            Console.WriteLine("    Building Under Usage...");
            if (teamComparisonReport == null)
            {
                teamComparisonReport = (ComparisonReport)teamReportFile.FindReport("LEAGUE", "Comparison Report");

                teamComparisonReport.processReport(Program.LEAGUES[0].Length);
            }
        }
Exemplo n.º 2
0
        public void initialize(ISOMReportFile teamReportFile)
        {
            Console.WriteLine("    Building Comparison...");
            Console.WriteLine("      Showing Moral=" + Config.SHOW_MORAL + ", Showing Warnings=" + Config.SHOW_WARNING);

            teamPrimaryStatsReport = (PrimaryStatsReport)teamReportFile.FindReport("LEAGUE", "Primary Player Statistics For");
            teamPrimaryStatsReport.processReport(Program.LEAGUES[0].Length);
            List <Player> replayPlayers = teamPrimaryStatsReport.getPlayers();


            teamComparisonReport = (ComparisonReport)teamReportFile.FindReport("LEAGUE", "Comparison Report");
            if (teamComparisonReport == null)
            {
                System.Console.WriteLine("Are you sure you selected 'ALL REPORTS' for the Team Reports?");
                throw new Exception("Unable to find Comparison Report in the Team Report File");
            }
            teamComparisonReport.setPlayerActualData(replayPlayers);
            teamComparisonReport.processReport(Program.LEAGUES[0].Length);
        }
Exemplo n.º 3
0
        public void initialize(ISOMReportFile teamReportFile)
        {
            Console.WriteLine("    Building Primary Player Statistics...");
            Dictionary <string, List <Report> > allReports = teamReportFile.getAllReports();

            foreach (string team in allReports.Keys)
            {
                PrimaryReport teamPrimaryReport = (PrimaryReport)teamReportFile.FindReport(team, "Primary Player Statistics For");
                if (teamPrimaryReport == null)
                {
                    System.Console.WriteLine("Are you sure you selected 'ALL REPORTS' for the Team Reports?");
                    throw new Exception("Unable to find Primary Player Statistics Report in the Team Report File");
                }
                teamPrimaryReport.processReport(3);
                allPrimaryReport.Add(teamPrimaryReport);
            }
        }
Exemplo n.º 4
0
 public void initialize(ISOMReportFile leagueReportFile)
 {
     recordBookReport = (RecordBookReport)leagueReportFile.FindReport("LEAGUE", "RECORD BOOK FOR FOR");
     recordBookReport.processReport(Program.LEAGUES[0].Length);
 }
Exemplo n.º 5
0
 public void initialize(ISOMReportFile leagueReportFile)
 {
     Console.WriteLine("    Building Standings...");
     leagueStandingsReport = (LeagueStandingsReport)leagueReportFile.FindReport("LEAGUE", "LEAGUE STANDINGS FOR");
     leagueStandingsReport.processReport(Program.LEAGUES[0].Length);
 }