init 9: Affichage ligne de jeu

This commit is contained in:
2026-02-07 13:29:27 +01:00
parent 84e1703429
commit b01bad0460

View File

@@ -70,8 +70,12 @@ public class Ligne extends ObjetGraphique{// Hérite de la classe ObjetGraphique
if(SegCourant == null){
if( (xCercle >= s.x) && ( xCercle <= (s.x + s.xLong) ) ){
this.SegCourant = s;
}else{
// Fin itération : rien ne se passe
}
}else{
if( (this.SegCourant.x + this.SegCourant.xLong) < xCercle ){
if( (s.x <= xCercle) && ((s.x + s.xLong) >= xCercle) ){
this.SegCourant = s;
}
}
}
}