diff --git a/out/production/projet-dev/linea/Ligne.class b/out/production/projet-dev/linea/Ligne.class index d0d7508..25eeb49 100644 Binary files a/out/production/projet-dev/linea/Ligne.class and b/out/production/projet-dev/linea/Ligne.class differ diff --git a/out/production/projet-dev/linea/ZoneDessin.class b/out/production/projet-dev/linea/ZoneDessin.class index 6adf3f1..a99796f 100644 Binary files a/out/production/projet-dev/linea/ZoneDessin.class and b/out/production/projet-dev/linea/ZoneDessin.class differ diff --git a/src/Ligne.java b/src/Ligne.java index 87470a7..a623570 100644 --- a/src/Ligne.java +++ b/src/Ligne.java @@ -15,7 +15,7 @@ public class Ligne extends ObjetGraphique { protected ArrayList listeSegments = new ArrayList(); public Ligne(){ - double x = 800; + double x = 0; double y = 200; double dx,dy; @@ -40,6 +40,18 @@ public class Ligne extends ObjetGraphique { for(Segment s : listeSegments) { s.Afficher(g); + if(SegCourant==null){ + if(xCercles.x){ + SegCourant=s; + } + } + else{ + if((SegCourant.x + SegCourant.xLong)=xCercle){ + SegCourant=s; + } + } + } } } @@ -47,6 +59,7 @@ public class Ligne extends ObjetGraphique { public void Animer() { for(Segment s : listeSegments) { s.Animer(); + s.x -= 10; } } } \ No newline at end of file