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(SegCourant == null){
|
||||||
if( (xCercle >= s.x) && ( xCercle <= (s.x + s.xLong) ) ){
|
if( (xCercle >= s.x) && ( xCercle <= (s.x + s.xLong) ) ){
|
||||||
this.SegCourant = s;
|
this.SegCourant = s;
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
// Fin itération : rien ne se passe
|
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