init 9: Affichage ligne de jeu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user