Esempio n. 1
0
 public AgentBase(int id, Scenario scenario, int group, int speed)
 {
     this._id = id;
     this.scenario = scenario;
     this._group = group;
     this._maxspeed = speed;
     this.WayPointsList = new List<WayPoint>();
     SpeedRatio = 1.0;
     cell = new Point(-1, -1);
     position = new System.Windows.Point(-1, -1);
     lifeThread = new Thread(Life);
 }
Esempio n. 2
0
 public AgentBase(int id, Scenario scenario, int group, int speed)
 {
     this._id           = id;
     this.scenario      = scenario;
     this._group        = group;
     this._maxspeed     = speed;
     this.WayPointsList = new List <WayPoint>();
     SpeedRatio         = 1.0;
     cell       = new Point(-1, -1);
     position   = new System.Windows.Point(-1, -1);
     lifeThread = new Thread(Life);
 }