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

@ -30,7 +30,6 @@ public class TestAddingCard {
public static void main(String[] args) { public static void main(String[] args) {
CartePiochable<?> instance = new CartePiochable(new EffetSelf(new ActionAltererStatistiquesJoueur(Joueur.PLAYER_HP, 2, true)), new Condition()); CartePiochable<?> instance = new CartePiochable(new EffetSelf(new ActionAltererStatistiquesJoueur(Joueur.PLAYER_HP, 2, true)), new Condition());
try { try {
insertCartePiochable(instance); insertCartePiochable(instance);
@ -81,8 +80,6 @@ public class TestAddingCard {
object = rs.getBytes(1); object = rs.getBytes(1);
} }
ByteArrayInputStream in = new ByteArrayInputStream(object); ByteArrayInputStream in = new ByteArrayInputStream(object);
ObjectInputStream is = new ObjectInputStream(in); ObjectInputStream is = new ObjectInputStream(in);
return (CartePiochable<?>) is.readObject(); return (CartePiochable<?>) is.readObject();

View File

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

View File

@ -21,11 +21,11 @@ public class PiocherVisionController implements Initializable{
@FXML @FXML
public void voirCarte(MouseEvent mouseEvent) throws IOException{ public void voirCarte(MouseEvent mouseEvent) throws IOException{
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml"); final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml");
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE); final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle); final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
Pane pane = fxmlLoader.load(); Pane pane = fxmlLoader.load();
rootPane.getChildren().setAll(pane); rootPane.getChildren().setAll(pane);
} }