Beispiel #1
0
 public void Show(PoliceReport policeReport)
 {
     Console.BackgroundColor = ConsoleColor.Black;
     Console.ForegroundColor = ConsoleColor.White;
     ConsoleEx.Clear();
     DisplayHeaders(policeReport.Month);
     DisplayGroupStats(policeReport.Groups.ToArray());
     DisplayGovernmentStats(policeReport.PlayerStrength, policeReport.MonthlyRevolutionStrength);
     pressAnyKeyControl.Show();
 }
Beispiel #2
0
        /// <summary>
        ///     Retrieves the police report with the current month, revolution strength, player strength and group information.
        /// </summary>
        /// <returns>The police report with the current month, revolution strength, player strength and group information.</returns>
        public PoliceReport GetPoliceReport()
        {
            PoliceReport policeReport = new PoliceReport
            {
                Month                     = governmentService.GetMonth(),
                Groups                    = groupService.GetGroups().AsReadOnly(),
                PlayerStrength            = governmentService.GetPlayerStrength(),
                MonthlyRevolutionStrength = governmentService.GetMonthlyRevolutionStrength()
            };

            return(policeReport);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            HospitalReport hospitalReport = new HospitalReport();
            PROCESSS       process        = new PROCESSS(hospitalReport);

            process.AttachCase();

            PoliceReport policeReport = new PoliceReport();

            process = new PROCESSS(policeReport);
            process.AttachCase();

            Console.ReadKey();
        }
Beispiel #4
0
        /// <summary>
        ///     Displays the police report screen.
        /// </summary>
        private void DisplayPoliceReportScreen()
        {
            PoliceReport policeReport = engine.GetPoliceReport();

            userInterface.DisplayPoliceReportScreen(policeReport);
        }
Beispiel #5
0
 public void DisplayPoliceReportScreen(PoliceReport policeReport) => policeReportScreen.Show(policeReport);