From e0a82abdb6736674923172f6c5d70ca6ad9358e5 Mon Sep 17 00:00:00 2001 From: "antoine.perederii" Date: Fri, 12 Jan 2024 10:05:13 +0100 Subject: [PATCH] update java's tp --- .../tp/JavaFX/tpJeuDeL_oie/Oie/.idea/misc.xml | 2 +- 2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/Oie.iml | 2 +- .../Oie/out/production/Oie/data/Stub.class | Bin 865 -> 884 bytes .../Oie/out/production/Oie/fxml/Fenetre.fxml | 30 ++++++++--- .../production/Oie/launcher/ConsoleGame.class | Bin 1208 -> 1208 bytes .../production/Oie/launcher/GraphicGame.class | Bin 1090 -> 1090 bytes .../Oie/managers/DeplaceurJoueur.class | Bin 2413 -> 2413 bytes .../Oie/managers/GestionnaireJoueur.class | Bin 1258 -> 2532 bytes .../Oie/out/production/Oie/models/Case.class | Bin 1915 -> 1915 bytes .../Oie/out/production/Oie/models/De.class | Bin 682 -> 682 bytes .../out/production/Oie/models/DeSimple.class | Bin 673 -> 673 bytes .../Oie/out/production/Oie/models/Jeu.class | Bin 1398 -> 1398 bytes .../out/production/Oie/models/Joueur.class | Bin 1549 -> 1549 bytes .../out/production/Oie/models/Plateau.class | Bin 1838 -> 1838 bytes .../Oie/out/production/Oie/view/Fenetre.class | Bin 2615 -> 3011 bytes .../tpJeuDeL_oie/Oie/res/fxml/Fenetre.fxml | 30 ++++++++--- .../tpJeuDeL_oie/Oie/src/data/Stub.java | 2 +- .../Oie/src/managers/GestionnaireJoueur.java | 50 ++++++++++++++---- .../tpJeuDeL_oie/Oie/src/view/Fenetre.java | 25 +++++---- 19 files changed, 102 insertions(+), 39 deletions(-) diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/.idea/misc.xml b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/.idea/misc.xml index 5273917..a346fd7 100644 --- a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/.idea/misc.xml +++ b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/Oie.iml b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/Oie.iml index 35103d4..081b3a6 100644 --- a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/Oie.iml +++ b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/Oie.iml @@ -8,6 +8,6 @@ - + \ No newline at end of file diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/data/Stub.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/data/Stub.class index dac14c4b9bb2d449dae49ec26407039651ed3ae9..6725d1ff240f94a550b6dbed676a0199882d7301 100644 GIT binary patch delta 62 zcmaFJ_Jxh()W2Q(7#JArHgc3ODynK|`eY@RC8kyAC+Fwnq$ZbS=I0gb`zIBr7L_F? S<)m)zVvJ&B - - + + + + - - -
- + + + +
+ + + +
+ +
+ + + +
+
diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/launcher/ConsoleGame.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/launcher/ConsoleGame.class index 2b3ba0534a76a797b8fe25ffff815eafbc3d3221..9e20e23eb4a3c42169df9a78d01fc5ecc4bea79a 100644 GIT binary patch delta 17 ZcmdnNxr3AA)W2Q(7#JArHgarW0RTWz26g}d delta 17 ZcmdnNxr3AA)W2Q(7#J8FH*#!X0RTW?26+Gg diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/launcher/GraphicGame.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/launcher/GraphicGame.class index 124d30e62ca5fd668099792fda260134a67c3275..2c8ca730da193b4fe413c3fd6349102181f44576 100644 GIT binary patch delta 17 ZcmX@aafpNC)W2Q(7#JArHgZ_8002OT1`+@O delta 17 ZcmX@aafpNC)W2Q(7#J8FH*#39002Oi1{DAR diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/managers/DeplaceurJoueur.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/managers/DeplaceurJoueur.class index 3cfd87b2b8db6fa031e61b50c6a1c219ac1a3203..b4e1b3161c101c68ed3a30dff53d4b80498c796c 100644 GIT binary patch delta 86 zcmaDW^j3)D)W2Q(7#JArHgeo$5#(oM$lzkgWXNJ?$mU_NWXPEu%X)~JgCTG73l?j} mg2^hZ8k^ mg2~@l4sDiaGiH{~W?*DUX8@6z423}LTtHS4LkU9}gCqb`ixl_( diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/managers/GestionnaireJoueur.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/managers/GestionnaireJoueur.class index 79c61a7ff0f4842a5cda414b963e8490e27cb872..d9c0179de70cd6717cfbdf78f54c3edc2042583f 100644 GIT binary patch literal 2532 zcmb_eZBrXn6n<_J8k1~*hElLCr7skd@UpEfMGT@8rBYKsQ`1tbb`!3+m~1k;2~+$v z{sf(oP;|!WXMa@3bF#b1Zd@=Q{E$0)ch7mw^PHD^^Y`07{sORqmvMv;jv}I90OtgT z_q78}t!T!cx>eej<%YnyW!=ylD+1wkrWnUNh(!@skboj^jm>{}rIu@z3K{D)!&29u zt#x+-Bejwx%>%7ek*lVu9p-h5KyRfp`2gRojxC$zVi?3w6vGP6BPDRTsu|jzG%fX^ zv^bcd>85;CYs#icJgW}&%|4K$xFC>r7?h+&yz6GIF3rZFTF|TYiev)Y&Z{^^aFH`K zCNQ1u13pt^>hCJJgv$c)inMH&mcW$j-V@auFBipxK=v$pc6GW0uOQ4JuPL~W8v@C4 z(=?^gaFa8AN>o2gE{-YOieg&9dq@l12xj1=N^P+xsh}5}f_i(0WMl=d|7V@!nB}N* zl$_vzewI9d6%wEGW2-MS%qI-q>{$M9say z>X#IJ$X_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W>1m% z8bEH-J5AR>)KMhpNuo%R5du*{nIeWY+@Yk3v_g?0jg`M4^Mw`~6p6|Sn(ZMt)&qyy z?$Y^s09GU~ddhN&gnqjE@8TlE$1W~w_=T&J)R__L+(6g80cF3~e4jFUa6ak$2x)#m zdLIu+t&G}UT diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/Case.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/Case.class index 22a68376ff75db0e4f0a837e8f5547b0028bdc81..697b615dd19b27d190b50b120dd85fddfb579b92 100644 GIT binary patch delta 92 zcmey(_nVL7)W2Q(7#JArHge=L3-Yru_;WD?Fa)wQ1o1GKF$7PZ$$UtdgCUfWfrU|l sk&A;NoRNWyW_LkI(i3}c7@8o~u+MKVM)#4<<%0JonH`Tzg` delta 91 zcmey(_nVL7)W2Q(7#J8FH*(}Mt8g&*GcvF+Dll?!Fa$C(Ff%G}@v|`mb1{T4gt9Y) q@i3S%gimf`KD0TSg_T)4h=Gy8j{!smFhl^&-~zHD8KN0t86*LDkPq$v diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/De.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/De.class index 95a334a381367c91877362639f1c33d776a42bec..999cc4405fb4dc59e329136996634fdba5f5365e 100644 GIT binary patch delta 17 ZcmZ3*x{8(K)W2Q(7#JArHgYUt0suYx20{P; delta 17 ZcmZ3*x{8(K)W2Q(7#J8FH*zdu0suY=21Nh> diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/DeSimple.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/DeSimple.class index a8359e8d6cce415a1db277cbf501f09dbcc79aec..63c01683ad0164794908e245f20c728a87565dce 100644 GIT binary patch delta 17 ZcmZ3;x{#IQ)W2Q(7#JArHge2l0suV81}6Xj delta 17 ZcmZ3;x{#IQ)W2Q(7#J8FH*(Bm0suVN1}Xpm diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/Jeu.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/Jeu.class index dc777c142471d5babbcb02cfc7e3a7c61ea65772..e24601502305843b5261cae7a79559bfeff5853e 100644 GIT binary patch delta 17 Zcmeyy^^J?;)W2Q(7#JArHge>#0su#>2D1PF delta 17 Zcmeyy^^J?;)W2Q(7#J8FH*(~$0su$52DShI diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/Joueur.class b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/out/production/Oie/models/Joueur.class index 04051d9d51098c2ce0484a80e742f578a04a9bbd..1f8633945bb45f4a20ba8967f16e1a0ed1fbac29 100644 GIT binary patch delta 74 zcmeC>>E+=#^>5cc1_lPZjU4_=g8Xa@W?T&B3>NGRmOKm!3|5nuGaX{)V6d4S#bmQN clewQs)Rcjd!J5GqsD%s2vSV;yaAJ@I0DaaD1poj5 delta 74 zcmeC>>E+=#^>5cc1_lPljU4_=%p446lXaPG1o_z*EVvjf8LZeDta%s|7;GkIFdf>Q c$=uH*YRIeynvO7*UN3J#u@{~k5m+d{Zy2WrviaZ&3-O4K{rEXG9)tcjtkj*$!V_kZ3LIq**b`@$m^`sN1LoujQ0X^uou*1eqTqV$P z3Ejkge-s4D)5&px%QDd?77c)+jjM5uz|u;hZJ-LQn8(rZy#?3V*p2IngP}8Ktz;z7 zwqP`sG0wfX!NQF;ZbFHqrLgCZEamxr87h;-#6Vntk#>^ImX_jX?6+{h#w|EV1I@3= zb?BTT*R0J!gP`BWt+#r+l@uyM>#xvWuwaaI#>gVm%!+Bh5@ zvhgq;5m;N3Q;JMhq(0*4Nv=XIJ>S};+PH`Z-RV|qHLprs(=+LeOS%LaAL9& zFsWwGcpC(c8%GoW06cGP3mh9K%yeqyV5+F#RuvYQYu852NZX=mwyf%lw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z8mCGG}1wo12mBrG)2)aOEJ?_ zAR&u87!|Q3RU2HQ%&bRfezm?!vWbv*fT12RVKIE4;C&%#Feh~zUfpgFTqaH}=S-@~ z#2Uwt$0Q-?w8@oAt}(0#+#1C7O;wWJBcS(Ifi7$W^z6?Jk1vrQ-I&xJy3*^qu%7TL z#7d3g=5*{4L)pn~QF@uP24f!4>uW@l1f)F3bbzG>{{liuXo0o8d1wN87BwtsB>&Kq0@TF+B_+Rl2H)#G3 Dnt$+h diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/res/fxml/Fenetre.fxml b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/res/fxml/Fenetre.fxml index 9e5f97e..5ab0fe7 100644 --- a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/res/fxml/Fenetre.fxml +++ b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/res/fxml/Fenetre.fxml @@ -1,14 +1,28 @@ - - + + + + - - -
- + + + +
+ + + +
+ +
+ + + +
+
diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/data/Stub.java b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/data/Stub.java index f5960b0..adfcf72 100644 --- a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/data/Stub.java +++ b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/data/Stub.java @@ -6,7 +6,7 @@ import models.Plateau; public class Stub { public Jeu loadPions() { - Jeu game = new Jeu(6, 6); + Jeu game = new Jeu(10, 6); game.getMyAdminPlayer().ajouterJoueur(new Joueur("rouge")); game.getMyAdminPlayer().ajouterJoueur(new Joueur("bleu")); game.getPlateau().placerJoueursSurCaseInitiale(game.getMyAdminPlayer().getLesJoueurs()); diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/managers/GestionnaireJoueur.java b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/managers/GestionnaireJoueur.java index 55ffc71..611536e 100644 --- a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/managers/GestionnaireJoueur.java +++ b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/managers/GestionnaireJoueur.java @@ -1,27 +1,55 @@ package managers; +import javafx.beans.Observable; +import javafx.beans.property.*; +import javafx.collections.FXCollections; +import javafx.collections.ObservableList; import models.Joueur; import java.util.ArrayList; import java.util.List; public class GestionnaireJoueur { - private int currentIdJoueur = 0; - private List lesJoueurs = new ArrayList<>(); + private ObservableList myList = FXCollections.observableArrayList(); + private ListProperty lesJoueurs = new SimpleListProperty(myList); + public ObservableList getLesJoueurs() { + return lesJoueurs.get(); + } + public ListProperty lesJoueursProperty() { + return lesJoueurs; + } + private ObjectProperty currentJoueur = new SimpleObjectProperty(); + public Joueur getCurrentJoueur() { + return currentJoueur.get(); + } + public ObjectProperty currentJoueurProperty() { + return currentJoueur; + } + public void setCurrentJoueur(Joueur joueur) { + currentJoueur.set(joueur); + } + // private List lesJoueurs = new ArrayList<>(); +// private StringProperty name = new SimpleStringProperty(); +// public String getName() { return name.get(); } +// public StringProperty nameProperty() { return name; } +// private void setName(String name) { this.name.set(name); } - public List getLesJoueurs() { - return this.lesJoueurs; - } - public Joueur getCurrentJoueur() { - return this.lesJoueurs.get(currentIdJoueur%lesJoueurs.size()); - } +// public List getLesJoueurs() { +// return this.lesJoueurs; +// } +// public Joueur getCurrentJoueur() { +// return currentJoueur; +// } public Joueur getJoueurSuivant() { - return this.lesJoueurs.get((currentIdJoueur+1) % lesJoueurs.size()); + return this.myList.get((currentJoueur.get().getIdJoueur() + 1) % lesJoueurs.size()); } public void ajouterJoueur(Joueur joueur) { - lesJoueurs.add(joueur); + myList.add(joueur); + if(myList.size() == 1) { + currentJoueur.set(myList.get(0)); + } } public Joueur nextPlayer() { - return lesJoueurs.get((++currentIdJoueur) % lesJoueurs.size()); + return myList.get((currentJoueur.get().getIdJoueur() + 1) % lesJoueurs.size()); } } diff --git a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/view/Fenetre.java b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/view/Fenetre.java index f4097b7..e8111f7 100644 --- a/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/view/Fenetre.java +++ b/2A/Java/tp/JavaFX/tpJeuDeL_oie/Oie/src/view/Fenetre.java @@ -3,6 +3,9 @@ package view; import data.Stub; import javafx.fxml.FXML; import javafx.scene.control.Button; +import javafx.scene.control.Label; +import javafx.scene.control.ListView; +import javafx.scene.control.TextField; import javafx.scene.layout.BorderPane; import javafx.scene.layout.VBox; import models.Jeu; @@ -13,17 +16,19 @@ public class Fenetre { @FXML private BorderPane myBorderPane = new BorderPane(); @FXML - private VBox buttonContainer; + private VBox labelContainer; + @FXML + private ListView joueursContainer = new ListView(); private final Jeu game = new Stub().loadPions(); Joueur currentPion = game.getMyAdminPlayer().getCurrentJoueur(); public void updateButtonLabels() { - for (int i = 0; i < game.getPlateau().getCaseList().size(); i++) { - Button button = (Button) buttonContainer.getChildren().get(i); + for (int i = 1; i < game.getPlateau().getCaseList().size(); i++) { + Label label = (Label) labelContainer.getChildren().get(i); if (game.getPlateau().getCaseList().get(i).getCurrentJoueur() != null) { - button.setText("Case " + (i + 1) + "\n" + "Joueur: " + game.getPlateau().getCaseList().get(i).getCurrentJoueur().getIdJoueur()); + label.setText("Case " + (i) + "\n" + "Joueur: " + game.getPlateau().getCaseList().get(i).getCurrentJoueur().getIdJoueur()); } else { - button.setText("Case " + (i + 1)); + label.setText("Case " + (i)); } } } @@ -34,13 +39,15 @@ public class Fenetre { } public void initialize() { for (int i = 0; i < game.getPlateau().getCaseList().size(); i++) { - Button button = new Button(); + Label label = new Label(); if (game.getPlateau().getCaseList().get(i).getCurrentJoueur() != null) { - button.setText("Case " + i + "\n" + "Joueur: " + game.getPlateau().getCaseList().get(i).getCurrentJoueur().getIdJoueur()); + label.setText("Case " + i + "\n" + "Joueur: " + game.getPlateau().getCaseList().get(i).getCurrentJoueur().getIdJoueur()); } else { - button.setText("Case " + i); + label.setText("Case " + i); } - buttonContainer.getChildren().add(button); + labelContainer.getChildren().add(label); } + joueursContainer.itemsProperty().bind(game.getMyAdminPlayer().lesJoueursProperty()); +// joueursContainer.selectionModelProperty().bind(game.getMyAdminPlayer().currentJoueurProperty()); } }