public void GiveFieldStatus(string statusName, int statusNum) { FieldStatus fs = StatusCreator.CreateFieldStatus(statusName, statusNum); if (fs != null) { fieldStatusControl.EnterStatus(fs); } }
public void GiveCharStatus(CharData chara, string statusName, int statusNum) { CharStatus cs = StatusCreator.CreateCharStatus(statusName, statusNum); if (cs != null) { chara.charStatusControl.EnterStatus(cs); } }
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(); }
public static StringContent CreateContent(Status status) { return(StatusCreator.Create(status)); }