Ajout possibilite de supprimer le survol en changeant la variable static Constants.DRAW_POSITION

This commit is contained in:
Justine Yannis 2022-11-11 20:55:14 +01:00
parent 01182a7f64
commit 7cda7fdbdc
2 changed files with 4 additions and 2 deletions

View File

@ -24,8 +24,10 @@ public class GrilleMouseListener extends MouseInputAdapter{
*/
@Override
public void mouseMoved(MouseEvent e) {
if(Constants.DRAW_POSITION)
if(Constants.DRAW_POSITION) {
this.controller.hoverGrille(e.getX());
}
}
/**

View File

@ -45,7 +45,7 @@ public class Constants {
/**
* Le survol du pion est activé ?
*/
public static final boolean DRAW_POSITION = true;
public static boolean DRAW_POSITION = true;
/**
* La marge d'un pion
*/