public void PutInTrail(int carId, int pgId, int pathIndex) { Car c = CLogic.GetCarBydId(carId); PathGroup pg = CLogic.GetPathGroupBydId(pgId); c.PutInPath(pg.Paths[pathIndex]); }
public void AddPathGroup(int id) { PathGroup pg = new PathGroup(); pg.Id = id; //CLogic.AddPathGroup(pg); CLogic.PathGroups.Add(pg); }
public void AddPath(int id, int x1, int y1, int x2, int y2, int dir) { Path p = new Path(); p.SetPath(new Point(x1, y1), new Point(x2, y2), dir == 0 ? false : true); PathGroup pg = CLogic.GetPathGroupBydId(id); p.ParentPathGroup = pg; p.ID = CLogic.GetNewPathId(); pg.Paths.Add(p); }