예제 #1
0
    public void GiveFieldStatus(string statusName, int statusNum)
    {
        FieldStatus fs = StatusCreator.CreateFieldStatus(statusName, statusNum);

        if (fs != null)
        {
            fieldStatusControl.EnterStatus(fs);
        }
    }
예제 #2
0
    public void GiveCharStatus(CharData chara, string statusName, int statusNum)
    {
        CharStatus cs = StatusCreator.CreateCharStatus(statusName, statusNum);

        if (cs != null)
        {
            chara.charStatusControl.EnterStatus(cs);
        }
    }
예제 #3
0
    public void GiveCardStatus(CardData card, string statusName, int statusNum)
    {
        CardStatus cs = StatusCreator.CreateCardStatus(statusName, statusNum);

        if (cs != null)
        {
            card.cardStatusControl.EnterStatus(cs);
        }
    }
        static void Main(string[] args)
        {
            var simulation    = new Simulation();
            var patientReset  = new PatientReset();
            var statusReset   = new StatusReset();
            var logger        = new KrankenhausStatisticsFileLogger();
            var statusCreator = new StatusCreator();

            logger.ClearFile();
            statusReset.ResetAll();
            patientReset.Reset();
            statusCreator.CreateAll();

            DateTime startTime = DateTime.Now;

            Console.WriteLine("simulating ... \n");

            simulation.Starter();
            var runTime = CalculateRuntime(startTime);


            Console.WriteLine($"\napplication runtime: {runTime}");
            Console.ReadLine();
        }
예제 #5
0
 public static StringContent CreateContent(Status status)
 {
     return(StatusCreator.Create(status));
 }