Пример #1
0
        public override void StartSimulation(IRTIambassador rtiAmb)
        {
            if (log.IsInfoEnabled)
            {
                log.Info("Start Military simulation");
            }

            JoinSimulation(rtiAmb, color, "Military");

            try
            {
                form = new MilitaryForm(militaryScenario);
                form.Show();
                //simulationThread = new Thread(new ThreadStart(SimulationLoop));
                //simulationThread.Start();
            }
            catch (Exception e)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("Failed running simulation. Exception :" + e.Message);
                }
            }
        }
Пример #2
0
        public override void StartSimulation(IRTIambassador rtiAmb)
        {
            if (log.IsInfoEnabled)
                log.Info("Start Military simulation");

            JoinSimulation(rtiAmb, color, "Military");

            try
            {
                form = new MilitaryForm(militaryScenario);
                form.Show();
                //simulationThread = new Thread(new ThreadStart(SimulationLoop));
                //simulationThread.Start();
            }
            catch (Exception e)
            {
                if (log.IsErrorEnabled)
                    log.Error("Failed running simulation. Exception :" + e.Message);
            }
        }