diff options
| author | polo <ordipolo@gmx.fr> | 2026-07-02 00:14:17 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-07-02 00:14:17 +0200 |
| commit | 0c2c3ee5a55f36d270171f2f67938542e251fdc5 (patch) | |
| tree | 8ea4d6a7ad09a5b1389b829980a7a5476982e754 /src/main/java/controlleur/ControllerTopMenu.java | |
| download | ppe_javafx-0c2c3ee5a55f36d270171f2f67938542e251fdc5.tar.gz ppe_javafx-0c2c3ee5a55f36d270171f2f67938542e251fdc5.tar.bz2 ppe_javafx-0c2c3ee5a55f36d270171f2f67938542e251fdc5.zip | |
fork utilisant maven
Diffstat (limited to 'src/main/java/controlleur/ControllerTopMenu.java')
| -rw-r--r-- | src/main/java/controlleur/ControllerTopMenu.java | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/main/java/controlleur/ControllerTopMenu.java b/src/main/java/controlleur/ControllerTopMenu.java new file mode 100644 index 0000000..baef8df --- /dev/null +++ b/src/main/java/controlleur/ControllerTopMenu.java | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | package controlleur; | ||
| 2 | |||
| 3 | import application.Battle; | ||
| 4 | import javafx.stage.Stage; | ||
| 5 | import modele.Evenement; | ||
| 6 | import modele.User; | ||
| 7 | import vue.AfficheAccueil; | ||
| 8 | import vue.AfficheAdmin; | ||
| 9 | import vue.AfficheConnexion; | ||
| 10 | import vue.AfficheCreerListe; | ||
| 11 | import vue.AfficheGestionCompte; | ||
| 12 | import vue.GestionListe.AfficheGestionListe; | ||
| 13 | import vue.simulation.AfficheSimulation; | ||
| 14 | |||
| 15 | public class ControllerTopMenu { | ||
| 16 | static BDD db = new BDD(); | ||
| 17 | |||
| 18 | public static void go_accueil(Stage primaryStage,User session) { | ||
| 19 | //primaryStage.close(); pour fermer stage | ||
| 20 | AfficheAccueil.affiche(primaryStage,session); | ||
| 21 | } | ||
| 22 | public static void go_gestion_compte(Stage primaryStage,User session) { | ||
| 23 | AfficheGestionCompte.affiche(primaryStage,session); | ||
| 24 | } | ||
| 25 | public static void go_gestion_listes(Stage primaryStage,User session) { | ||
| 26 | |||
| 27 | // db.getArmyLists(session); | ||
| 28 | AfficheGestionListe.affiche(primaryStage, session); | ||
| 29 | |||
| 30 | // | ||
| 31 | |||
| 32 | } | ||
| 33 | public static void go_deco(Stage primaryStage, User session) { | ||
| 34 | AfficheSimulation.cleanWeaponsAtitudesMenu(); | ||
| 35 | Battle.clean(); // VRAIMENT ?! | ||
| 36 | session = null; | ||
| 37 | AfficheConnexion.affiche(primaryStage); | ||
| 38 | } | ||
| 39 | public static void go_simulation(Stage primaryStage, User session){ | ||
| 40 | |||
| 41 | |||
| 42 | Instanciation.getArmyLists(session); | ||
| 43 | |||
| 44 | AfficheSimulation.affiche(primaryStage, session); | ||
| 45 | } | ||
| 46 | public static void go_admin(Stage primaryStage,User session) { | ||
| 47 | AfficheAdmin.affiche(primaryStage,session); | ||
| 48 | } | ||
| 49 | public static void go_creer_liste(Stage primaryStage, User session) { | ||
| 50 | AfficheCreerListe.afficheCreerListe(primaryStage, session); | ||
| 51 | } | ||
| 52 | // public static void go_gestionliste(Stage primaryStage,User session) { | ||
| 53 | // AfficheGestionListe.affiche(primaryStage,session); | ||
| 54 | // } | ||
| 55 | } | ||
| 56 | |||
| 57 | |||
| 58 | |||
