Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development

This commit is contained in:
Paul Gross 2020-05-14 11:16:02 +02:00
commit 84d63bd9c6
5 changed files with 11 additions and 17 deletions

View File

@ -60,12 +60,11 @@ public class ChoisirEquipement implements Initializable{
for (CarteEquipement ce : equipements) {
ImageView iv = new ImageView(PlateauController.getImageCarte(ce));
iv.setFitHeight(100);
iv.setFitHeight(100);
iv.setPreserveRatio(true);
hbox.getChildren().add(iv);
iv.fitHeightProperty().bind(hbox.heightProperty());
//iv.fitWidthProperty().bind(scrollpane.widthProperty());
iv.setPreserveRatio(true);
iv.setOnMouseClicked(e -> {
equipementSelected = ce;
GestionnaireJeu.notifyPlateau();

View File

@ -44,7 +44,6 @@ public class MenuController implements Initializable{
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", ParametreController.LaLangue);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
AnchorPane pane = fxmlLoader.load();
rootPane.getChildren().setAll(pane);
Scene scene = new Scene(pane);
Stage appStage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow();
appStage.setScene(scene);

View File

@ -451,6 +451,7 @@ public void afficherEffet(Joueur j) throws IOException {
public void updateVieJoueur(Joueur joueur, int damage) {
JoueurIHM jIHM = getJoueurIHM(joueur);
jIHM.getZoneJoueur().getChildren().setAll();
jIHM.deplacerPionVie(damage);
}
@ -514,15 +515,11 @@ public void afficherEffet(Joueur j) throws IOException {
}
});
if(j instanceof JoueurVirtuel) {
System.out.println("here");
Timeline timeline = new Timeline(new KeyFrame(Duration.millis(3000), ae -> {
GestionnaireJeu.notifyPlateau();
pu.getStage().hide();
}));
timeline.play();
}
System.out.println("j is instance of "+j);
pu.display();
}

View File

@ -32,20 +32,20 @@ public class ControleurIA {
int diff = jIA.getDifficulte();
switch (diff) {
case 1:
if (res < 25)
if (res < 60)
return true;
break;
case 2:
if (res < 50)
if (res < 80)
return true;
break;
case 3:
if (res < 75)
if (res < 100)
return true;
break;
default:
}
} else if (res < 10)
} else if (res < 30)
return true;
return false;
}

View File

@ -315,7 +315,6 @@ public class Plateau extends Thread{
return this.getStat(PARTIE_FINIE) == 1;
}
public void deplacer(Joueur currentJoueur) {
boolean attributed = false;