controller carte vision
This commit is contained in:
69
src/ihm/controller/VisualiserCarte.java
Normal file
69
src/ihm/controller/VisualiserCarte.java
Normal file
@@ -0,0 +1,69 @@
|
||||
package ihm.controller;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import carte.Carte;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.Initializable;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.image.ImageView;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
|
||||
public class VisualiserCarte implements Initializable{
|
||||
@FXML private Label typeCarte;
|
||||
@FXML private Label effetCarte;
|
||||
@FXML private ImageView imageCarte;
|
||||
|
||||
private Carte carte;
|
||||
|
||||
@Override
|
||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||
/*typeCarte.setText(carte.getNom());
|
||||
effetCarte.setText(carte.getDescription());*/
|
||||
}
|
||||
|
||||
/**
|
||||
* signe la fin du tour
|
||||
* @param mouseEvent click n'importe ou sur la fenetre
|
||||
*/
|
||||
@FXML
|
||||
private void fin (MouseEvent mouseEvent) {
|
||||
|
||||
}
|
||||
|
||||
public Label getTypeCarte() {
|
||||
return typeCarte;
|
||||
}
|
||||
|
||||
public void setTypeCarte(Label typeCarte) {
|
||||
this.typeCarte = typeCarte;
|
||||
}
|
||||
|
||||
public Label getEffetCarte() {
|
||||
return effetCarte;
|
||||
}
|
||||
|
||||
public void setEffetCarte(Label effetCarte) {
|
||||
this.effetCarte = effetCarte;
|
||||
}
|
||||
|
||||
public ImageView getImageCarte() {
|
||||
return imageCarte;
|
||||
}
|
||||
|
||||
public void setImageCarte(ImageView imageCarte) {
|
||||
this.imageCarte = imageCarte;
|
||||
}
|
||||
|
||||
public Carte getCarte() {
|
||||
return carte;
|
||||
}
|
||||
|
||||
public void setCarte(Carte carte) {
|
||||
this.carte = carte;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
12
src/ihm/controller/VisualiserCarteVision.java
Normal file
12
src/ihm/controller/VisualiserCarteVision.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package ihm.controller;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
|
||||
public class VisualiserCarteVision extends VisualiserCarte{
|
||||
@FXML
|
||||
public void voirCarte(MouseEvent mouseEvent) {
|
||||
//super.getImageCarte().setImage(arg0);
|
||||
System.out.println("\tCarte vision");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user