Esempio n. 1
0
 public void _KillAircraft(cessna_digital_twin.Aircraft target, int executionFrequency = 1)
 {
     target._isAlive = false;
     _AircraftEnvironment.Remove(target);
     _Unregister(this, target, target._executionFrequency);
     _AircraftAgents.Remove(target.ID);
 }
Esempio n. 2
0
        public cessna_digital_twin.Aircraft _SpawnAircraft(double xcor = 0, double ycor = 0, int freq = 1)
        {
            var id    = System.Guid.NewGuid();
            var agent = new cessna_digital_twin.Aircraft(id, this, _Register, _Unregister,
                                                         _AircraftEnvironment,
                                                         default(int),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(int),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(int),
                                                         default(int),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(double),
                                                         default(int),
                                                         default(double),
                                                         default(int),
                                                         default(double),
                                                         default(double),
                                                         default(double)
                                                         , xcor, ycor, freq);

            _AircraftAgents.Add(id, agent);
            return(agent);
        }