TestAddingCard

This commit is contained in:
Paul Gross 2020-05-05 13:53:54 +02:00
parent fea2ecba5a
commit 8952512b3e
3 changed files with 6 additions and 14 deletions

View File

@ -31,7 +31,6 @@ public class TestAddingCard {
CartePiochable<?> instance = new CartePiochable(new EffetSelf(new ActionAltererStatistiquesJoueur(Joueur.PLAYER_HP, 2, true)), new Condition());
try {
insertCartePiochable(instance);
System.out.println(retrieveCartePiochable(0).getEffet());
@ -81,8 +80,6 @@ public class TestAddingCard {
object = rs.getBytes(1);
}
ByteArrayInputStream in = new ByteArrayInputStream(object);
ObjectInputStream is = new ObjectInputStream(in);
return (CartePiochable<?>) is.readObject();

View File

@ -10,7 +10,6 @@ import main.GestionnaireJeu;
public class ChoisirBoolean implements Initializable {
@FXML private Button ouiButton;
@FXML private Button nonButton;
@ -22,19 +21,15 @@ public class ChoisirBoolean implements Initializable {
this.result = true;
GestionnaireJeu.notifyPlateau();
});
nonButton.setOnAction(x -> {
this.result = false;
GestionnaireJeu.notifyPlateau();
});
}
public boolean getResult() {
return this.result;
}
}