Compare commits

...

261 Commits

Author SHA1 Message Date
Paul Gross
595ef1e6f2 Merge development into master 2020-05-15 17:44:01 +02:00
Paul Gross
2be6ee8e62 Minor changes 2020-05-15 17:41:46 +02:00
nawfe
f619bcea3e Traduction fin 2020-05-15 16:14:42 +02:00
nawfe
c07fb7afca Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-15 14:46:13 +02:00
Bastien NOEL
0b9bf5cb13 correction d'un problemet sur le menu pause 2020-05-15 14:03:34 +02:00
Bastien NOEL
d464b37f8f supression des pions inutiles sur les bords du plateau 2020-05-15 13:39:33 +02:00
Bastien NOEL
0f23620510 recentrage, alignement et modoficationde la taille de police nom perso 2020-05-15 13:28:38 +02:00
Yessine-iut
0e946aff65 Correction erreur 2020-05-15 13:04:32 +02:00
nawfe
aa6dc806b2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-15 13:02:40 +02:00
nawfe
889439b741 Merged conflict 2020-05-15 13:02:36 +02:00
Bastien NOEL
5d6704100b ajout de matamorphe dans les noms de perso sur la barre de vie 2020-05-15 12:31:04 +02:00
Bastien NOEL
9c7624898e recentrage des nom des perso sur la barre de vie 2020-05-15 12:25:21 +02:00
Bastien NOEL
b8d0dde99d ajout des noms des personnages sur la barre de blessures 2020-05-15 12:19:27 +02:00
Chiara
bee7c7894d relecture langue espagnol 2020-05-15 11:31:26 +02:00
Kruss
0558d127e4 affichage d'écran de victoire à la fin de la partie 2020-05-15 10:43:30 +02:00
Kruss
25205bf874 reglé pb dés qui plantent après attaque 2020-05-15 10:03:02 +02:00
Yessine-iut
7c37fd3a05 Suppression du mode clair non fonctionnel 2020-05-14 23:28:17 +02:00
Kruss
8c3ad11a52 traduction du jeu en italien et espagnol 2020-05-14 22:53:04 +02:00
Yessine-iut
20ce6cc2e3 Langue italien 2020-05-14 21:55:17 +02:00
Kruss
b37a111c35 reglé erreurs pt2 2020-05-14 21:44:34 +02:00
Kruss
90bb5a2cdd changements et reglé erreurs 2020-05-14 21:38:03 +02:00
nawfe
d024829cec Traduction dans les controller fin 2020-05-14 20:41:28 +02:00
nawfe
d32233e61e Traduction dans les controller fin 2020-05-14 20:32:33 +02:00
Yessine-iut
bcb5897c71 Methode nomAutorise supprimer, et methode nomVide modifier, affichage modifié pour une meilleure compréhension 2020-05-14 20:19:35 +02:00
Yessine-iut
462b04b54e Regler si le nom est vide (ne contient que des espaces égalements) 2020-05-14 20:14:25 +02:00
Yessine-iut
bdd1311851 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 20:07:42 +02:00
Bastien NOEL
e0a99f1a1a modification de l'ecran de fin de partie 2020-05-14 18:36:14 +02:00
Yessine-iut
7ae92fdddb Avoir le même pseudo et un nom vide impossible 2020-05-14 17:15:13 +02:00
Yessine-iut
48a2460301 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 17:08:34 +02:00
Yessine-iut
bedabccb2e Pseudo vide ou même pseudo avec un autre joueur interdit 2020-05-14 15:05:20 +02:00
Bastien NOEL
33e67b4dff ajout de l'ecran de fin de partie 2020-05-14 14:09:04 +02:00
nawfe
cee8e76215 Traduction dans les controller 2020-05-14 13:20:32 +02:00
nawfe
4951e7798e Traduction des FXML 2020-05-14 13:12:07 +02:00
nawfe
705503a7f1 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 13:09:12 +02:00
Bastien NOEL
19439fadfe correction bug choix des joueurs 2020-05-14 13:06:50 +02:00
Paul Gross
1b3c4aa0ae Changements 2020-05-14 12:42:58 +02:00
Paul Gross
4718e00771 Gestion des morts 2020-05-14 12:36:15 +02:00
Kruss
4263869d58 changements IA 2020-05-14 12:31:14 +02:00
Paul Gross
84d63bd9c6 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 11:16:02 +02:00
Paul Gross
1c28ec2459 Choisir un effet, IHM et Plateau 2020-05-14 11:15:52 +02:00
nawfe
22b5c8cf56 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 11:14:23 +02:00
nawfe
105d79ebb3 Merged conflict 2020-05-14 11:14:16 +02:00
Kruss
75e611f2b1 reglé erreur 2020-05-14 11:11:31 +02:00
Kruss
52ae8c66d3 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 10:21:51 +02:00
Kruss
1729b51780 changements 2020-05-14 10:21:12 +02:00
Paul Gross
0963e6f1c2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 10:15:24 +02:00
Paul Gross
3dacaac186 Se réveler JoueurVirtuel 2020-05-14 10:15:16 +02:00
Kruss
43fea99107 changements 2020-05-14 09:53:57 +02:00
Kruss
f0749eb6db prise en compte diff IA 2020-05-14 08:47:25 +02:00
Kruss
38c9dc8e26 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-14 08:22:45 +02:00
Kruss
d858b1bcb9 prise en compte ia 2020-05-14 08:21:42 +02:00
Bastien NOEL
6bdd64a1cf choix de la difficulté de l'ia 2020-05-13 19:56:23 +02:00
Yessine-iut
fc717845c4 Methode effet 2020-05-13 19:14:56 +02:00
Yessine-iut
5e2bc89af0 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-13 17:59:43 +02:00
Yessine-iut
3f2f861624 ScrollPane problème reglé 2020-05-13 17:59:08 +02:00
Paul Gross
a866aa6914 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-13 17:43:41 +02:00
Paul Gross
44d8ec282e Ajustement de la taille des écrans, cartes lieu 2020-05-13 17:43:33 +02:00
Bastien NOEL
f628d5a261 ajout de radio bouton pour le lvl des ia 2020-05-13 16:41:29 +02:00
Paul Gross
b69955273d Ajout des cartes visions + mensonge métamorphe 2020-05-13 16:06:00 +02:00
Paul Gross
3d059d5747 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-13 15:13:58 +02:00
Paul Gross
f7df74eb46 Ajout des cartes équipement 2020-05-13 15:13:50 +02:00
Bastien NOEL
c7018656c1 credit musique menu pause 2020-05-13 13:44:09 +02:00
Paul Gross
1f6ee979a1 Carte vision donnée 2020-05-13 12:47:46 +02:00
Paul Gross
b182af79a4 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-13 10:59:40 +02:00
Paul Gross
b51df99297 Utilisation des capacités spéciales fonctionnelles 2020-05-13 10:59:27 +02:00
Kruss
01fef8fc77 mis images pour des 4 faces et reglé certains erreurs dans LancerDes 2020-05-13 10:57:06 +02:00
Paul Gross
dc3414c023 Ajout des capacités spéciales 2020-05-13 10:35:38 +02:00
Paul Gross
80f7266ffb Capacite personnage thread 2020-05-13 10:28:02 +02:00
Bastien NOEL
d8df8f3833 voir sa carte perso quand on emet une pression dessus 2020-05-12 18:00:58 +02:00
Yessine-iut
697a35679c Afficher piocher une carte 2020-05-12 15:56:10 +02:00
Paul Gross
83c080f719 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-12 15:38:28 +02:00
Paul Gross
006fa4a923 Taille du plateau 2020-05-12 15:38:17 +02:00
Kruss
d61a12324f lancer des 2020-05-12 15:36:10 +02:00
Kruss
8963221080 lancer des 2020-05-12 15:30:04 +02:00
Paul Gross
e1b208b16d Dos de cartes 2020-05-12 15:22:00 +02:00
Paul Gross
fc94ebc99f Changements IHM 2020-05-12 15:12:14 +02:00
Paul Gross
f1a46ada87 Voir carte vision 2020-05-12 12:30:57 +02:00
Paul Gross
985a085e74 Changement plateau 2020-05-12 11:18:52 +02:00
Paul Gross
60cfeddaf1 Ajout joueurs 2020-05-12 11:06:34 +02:00
Kruss
7a689e6007 impl bouton quitter jeu 2020-05-12 09:40:11 +02:00
Yessine-iut
0f0dc65d3e Test de la selection des joueurs 2020-05-12 01:53:20 +02:00
Yessine-iut
b319b27ab1 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-12 01:23:44 +02:00
Yessine-iut
ed8789d67d Bouton des joueurs morts desactive (à finir) 2020-05-12 01:23:25 +02:00
Paul Gross
c882fe1963 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-11 18:00:19 +02:00
Paul Gross
b0b506cfb0 Take damages ihm 2020-05-11 18:00:14 +02:00
Bastien NOEL
5cb64604e5 correction d'une erreure 2020-05-11 17:45:28 +02:00
Bastien NOEL
5d9ba89bed credit de la musique 2020-05-11 17:30:20 +02:00
Yessine-iut
70f259649c Fichier FXML change 2020-05-11 15:49:28 +02:00
Paul Gross
3851b72149 Choisir Joueur 2020-05-11 15:32:02 +02:00
Paul Gross
f2ebbd627a Changement 2020-05-11 15:25:59 +02:00
Paul Gross
1137478053 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-11 15:19:49 +02:00
Paul Gross
77f7f3e0d9 Voler équipements 2020-05-11 15:19:41 +02:00
Yessine-iut
f977a55c5f Afficher choisir joueur 2020-05-11 15:19:17 +02:00
Yessine-iut
c9046f1316 Choix joueur attaqué 2020-05-11 15:15:20 +02:00
Bastien NOEL
4d0d06de12 travail sur le plateau 2020-05-11 13:57:46 +02:00
Paul Gross
b595503b7b Ajout LieuZJ 2020-05-11 13:55:11 +02:00
Bastien NOEL
84b8617e31 travail sur le plateau 2020-05-11 13:55:08 +02:00
Bastien NOEL
df54f21dfd amelioration des slider de musique dans parametre et pause 2020-05-10 17:04:56 +02:00
Bastien NOEL
0cb58a15aa possibilité d'accéder aux regles depuis le menu pause 2020-05-10 16:00:46 +02:00
Bastien NOEL
57376feddb sauvegarde la langue choisi dans la combobox en revenant dans parametres 2020-05-10 15:20:31 +02:00
Bastien NOEL
94b5f1dbb7 modification des boutons dans le menu regles 2020-05-10 15:03:18 +02:00
Paul Gross
b10e068a28 Révélation des cartes personnage fonctionnel 2020-05-09 16:23:12 +02:00
JunkJumper
3e88a7d1a7 bdd vrai #4 2020-05-08 17:00:32 +02:00
Paul Gross
ff66ba807a bdd 2020-05-08 16:52:08 +02:00
Paul Gross
02a15030bb Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-08 16:44:12 +02:00
Paul Gross
0367d64882 BDD 2020-05-08 16:44:03 +02:00
nawfe
1b69f11ce7 Changement de langue 2020-05-08 16:32:00 +02:00
Bastien NOEL
5ac8589818 ajout de slider pour regler le volume des effets sonores dans les parametres et le menu pause 2020-05-08 16:18:56 +02:00
Paul Gross
abacff2a17 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-08 16:09:01 +02:00
Paul Gross
d6fe0f0d80 Ajout des cartes lieux en provenance de la bdd 2020-05-08 16:08:56 +02:00
Yessine-iut
5e1ee06436 Suppression responsive 2020-05-08 14:10:12 +02:00
nawfe
05c2b496a2 Changement de langue 2020-05-07 19:49:38 +02:00
Yessine Ben El Bey
3e13aefcce Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-07 18:09:12 +02:00
Yessine Ben El Bey
a6a8b326d9 Parametre 2020-05-07 18:08:54 +02:00
Bastien NOEL
78f251d5f1 ajout du slider dans le menu pause pour la musique 2020-05-07 18:01:04 +02:00
Bastien NOEL
ffa5398c4f ajout slider parametre pour la musique 2020-05-07 17:19:46 +02:00
Yessine Ben El Bey
caf0e8db7c Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-07 17:11:26 +02:00
Yessine Ben El Bey
ff4f0aaab1 Responsive 2020-05-07 17:11:08 +02:00
Paul Gross
892dd6da73 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-07 16:58:36 +02:00
Paul Gross
144ffd5434 Ajout constructeur de Plateau en s'appuyant de RessourceLoader 2020-05-07 16:58:31 +02:00
Yessine Ben El Bey
a2bc3f1dd4 Paramètre mettre les cases cochés et controllerPause mettre les cases cochés 2020-05-07 14:46:01 +02:00
Kruss
6f6c2af608 changements pour executable 2020-05-07 14:05:14 +02:00
Yessine Ben El Bey
a3ae506ee7 Fix pauseController 2020-05-07 11:32:33 +02:00
Yessine Ben El Bey
77166d9180 Bouton retour choix joueur 2020-05-07 11:30:31 +02:00
Yessine Ben El Bey
ce4a6bfeac Bouton retour joueur 2020-05-07 11:28:01 +02:00
Paul Gross
9fca28f7bb Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 17:50:12 +02:00
Paul Gross
14bcbe0347 Ressource loader fonctionnel 2020-05-06 17:49:55 +02:00
Bastien NOEL
7d2ae20c6d correction d'une erreur avec le menu pause 2020-05-06 17:21:43 +02:00
Bastien NOEL
fb161fec2c réglage du volume de la musique dans les paramètre et le menu pause 2020-05-06 17:10:07 +02:00
Paul Gross
3e0d0e7efb RessourceLoader 2020-05-06 16:47:22 +02:00
Paul Gross
35f87bd62e RessourceLoader 2020-05-06 16:46:33 +02:00
JunkJumper
9152de5f78 DB voir avec paul #4 2020-05-06 16:39:55 +02:00
Yessine Ben El Bey
fdf6fed74d Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 16:19:40 +02:00
Yessine Ben El Bey
2eba98b240 Quitter plateau non fini 2020-05-06 16:19:16 +02:00
Paul Gross
4734e9bb7d Merging 2020-05-06 16:17:26 +02:00
Paul Gross
24cc4909bf Changement des classes types par des enum 2020-05-06 16:15:36 +02:00
Chiara
67d955b6d8 controller carte vision 2020-05-06 16:00:14 +02:00
JunkJumper
4843f9932e BDD formatage script 90% #4 2020-05-06 15:40:34 +02:00
Chiara
7d331ee7da correction merge main 2020-05-06 15:33:23 +02:00
Chiara
2edaa6156e revert stash 2020-05-06 15:32:07 +02:00
Chiara
e7ca21a33e revert stash 2020-05-06 15:31:27 +02:00
Chiara
34e3690ba9 controller piocher et lancer des 2020-05-06 15:24:39 +02:00
JunkJumper
13ae661b3b Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 15:11:02 +02:00
JunkJumper
2a730c2c1a readme 2020-05-06 15:10:48 +02:00
Paul Gross
1b554ad75c Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 14:40:24 +02:00
Paul Gross
9885ed12ca Retrieving cards 2020-05-06 14:39:43 +02:00
Bastien NOEL
96883dad89 ajout des regles du jeu 2020-05-06 14:37:59 +02:00
Yessine Ben El Bey
71b7a1cb2b Boutton quitter 2020-05-06 14:07:51 +02:00
JunkJumper
70a214248d Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 13:27:04 +02:00
JunkJumper
be7f6076f9 querry readAllBytes OK String to void #4 2020-05-06 13:26:53 +02:00
Paul Gross
ce713d07e1 minor change 2020-05-06 13:25:49 +02:00
Paul Gross
e13135d180 minor change 2020-05-06 13:25:08 +02:00
JunkJumper
975cedb690 querry readAllBytes OK #4 2020-05-06 13:24:50 +02:00
JunkJumper
36991016ba Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 13:22:09 +02:00
JunkJumper
ff73b605a6 querry readAllBytes OK #4 2020-05-06 13:21:16 +02:00
Bastien NOEL
173b9d6de0 ajout d'un bouton parametre dans le menu 2020-05-06 12:47:56 +02:00
Bastien NOEL
5ca48d7f19 musique fonctionnel dans le menu pause 2020-05-06 12:19:24 +02:00
Paul Gross
1a2b50ffb2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 12:04:35 +02:00
Paul Gross
e91b24c13a Images + ajout des cartes visions et ténèbres 2020-05-06 12:04:30 +02:00
Kruss
624e12135f mise au point des tests IA 2020-05-06 10:03:37 +02:00
Chiara
17f5d37c5e generalisation lancer des, choisir joueur, choisir equipement 2020-05-05 15:38:11 +02:00
Paul Gross
2ab9df30ed Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 15:29:02 +02:00
Paul Gross
f8be85ad5e Création des cartes lumières pour insertion dans la bdd 2020-05-05 15:28:51 +02:00
Chiara
e5a28a1a4d création classe pour choix joueur 2020-05-05 14:49:38 +02:00
Chiara
901f872e3e adaptation interfaces boolean 2020-05-05 14:21:34 +02:00
Chiara
d7753d5182 adaptation interfaces boolean 2020-05-05 14:20:18 +02:00
JunkJumper
aeb17ba303 nouvelle BDD #4 2020-05-05 14:16:37 +02:00
Paul Gross
8952512b3e TestAddingCard 2020-05-05 13:53:54 +02:00
Paul Gross
fea2ecba5a Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 13:13:44 +02:00
Paul Gross
ea4d4612ab Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 13:13:29 +02:00
Chiara
8e348d5a3e liasons interface joué tour 2020-05-05 13:13:25 +02:00
Paul Gross
222605628c Récupération objet bdd 2020-05-05 13:13:21 +02:00
JunkJumper
e1baaa02f8 db #4 2020-05-05 11:24:05 +02:00
Paul Gross
40ad1cb599 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 10:51:36 +02:00
Paul Gross
7f9d8bce5c Fin de partie 2020-05-05 10:51:27 +02:00
Chiara
63b12cbf9a modif barre de vie plateau 2020-05-05 10:50:49 +02:00
nawfe
628dc33bb2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-04 19:45:53 +02:00
nawfe
f93f6b534e Traduction suite 2020-05-04 19:36:39 +02:00
Bastien NOEL
808712f6b6 correction des problèmes liés aux effets sonores dans le menu pause 2020-05-04 17:54:13 +02:00
Bastien NOEL
54e2ae4039 ajustement et ajout d'effets sonores 2020-05-04 16:15:01 +02:00
Chiara
8627870e86 ajout menu pause 2020-05-04 16:07:25 +02:00
Bastien NOEL
c94e1a46af effets sonores fonctionnels 2020-05-04 15:04:24 +02:00
Kruss
eb5aacc8ce changement des chemins pour executable 2020-05-04 14:49:12 +02:00
Kruss
98a43e0363 enlevé un truc de debugage 2020-05-04 14:42:37 +02:00
Kruss
745e8597ae changements pour executable x2 2020-05-04 14:41:30 +02:00
Kruss
e0b60aff40 changement de chemins pour executable 2020-05-04 13:57:50 +02:00
JunkJumper
e0b965af5f update database #4 2020-05-04 13:41:10 +02:00
Paul Gross
80a0c89d49 PlateauTest2 déplacement des pions 2020-05-04 11:14:52 +02:00
Paul Gross
afaef5411b Fix bug tours, choix fonctionnels 2020-05-03 17:08:45 +02:00
Paul Gross
03499c7191 Version fonctionnelle des rotations zoneJoueur, voir PlateauTest2 2020-05-03 15:03:46 +02:00
Paul Gross
2ab87b04b2 Prise en compte des zones joueurs 2020-05-01 19:09:48 +02:00
AhmedSaad
861b66f439 tests supplementaires IA, revoir choix equipements 2020-05-01 09:53:35 +02:00
Paul Gross
51e4d845f0 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-30 19:10:48 +02:00
Paul Gross
ba5976ec93 Amélioration plateau 2020-04-30 19:10:41 +02:00
Bastien NOEL
11bf281ea3 ajout des effets sonores 2020-04-30 17:11:50 +02:00
Chiara
1bc6fd188d adaptation interfaces 2020-04-30 15:36:37 +02:00
Bastien NOEL
5a8f81c40f utf8 traduction 2020-04-30 14:54:55 +02:00
nawfe
99507e8d39 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-30 14:13:29 +02:00
nawfe
b7fdb22edc Traduction 2020-04-30 14:12:31 +02:00
nawfe
26f8971225 Merge conflict 2020-04-30 14:10:19 +02:00
Paul Gross
d476733172 Plateau.fxml 2020-04-30 14:00:09 +02:00
Paul Gross
6c9f24b1d7 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-30 13:58:00 +02:00
Paul Gross
12bf8f788e PlateauController et JoueurIHM 2020-04-30 13:57:53 +02:00
Chiara
fe10fc1c53 changement plateau 2020-04-30 13:54:54 +02:00
Chiara
660a38a0f5 changement plateau 2020-04-30 13:53:58 +02:00
Paul Gross
fa90f4b6d9 PlateauTest.fxml 2020-04-30 13:39:49 +02:00
nawfe
255e8012bf Traducion 2020-04-30 13:09:18 +02:00
Paul Gross
56a1177eaf Merge 2020-04-30 11:43:55 +02:00
Paul Gross
b6932c530e Factoriser PlateauController 2020-04-30 11:41:15 +02:00
Chiara
b293b3ed01 prise en compte des pions 2020-04-30 11:40:25 +02:00
AhmedSaad
8042514def fait enum contexte et changements a tester sur IA 2020-04-30 10:30:55 +02:00
JunkJumper
641d298bd3 Database script continue + tests Junit5 #4 2020-04-29 19:14:18 +02:00
Chiara
feee1885bd supression interfaces inutiles 2020-04-29 17:30:35 +02:00
Chiara
ab74bb0fdf lancement jouer tour auto plateau 2020-04-29 16:56:15 +02:00
nawfe
d4a52236e1 removed merge conflicts 2020-04-29 16:46:09 +02:00
nawfe
1c2426aad5 removed merge conflicts 2020-04-29 16:45:17 +02:00
Chiara
47a2be3252 changement plateau 2020-04-29 15:32:30 +02:00
Chiara
f8996e10ee changement plateau 2020-04-29 15:31:59 +02:00
JunkJumper
eea99d2341
Delete w.txt 2020-04-29 15:30:29 +02:00
JunkJumper
2a7002cdfb BDD jar API #4 2020-04-29 15:30:04 +02:00
JunkJumper
19d1e6cdd6 BDD TableGenerator #4 2020-04-29 15:18:48 +02:00
nawfe
7926ff0bae Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-29 15:00:10 +02:00
nawfe
d3cc6634fb removed merge conflicts 2020-04-29 15:00:04 +02:00
Paul Gross
e0e8278da7 Merge remote-tracking branch 'origin/rollingDice' into development 2020-04-29 12:23:27 +02:00
AhmedSaad
881c323481 petit truc sur IA 2020-04-29 11:37:27 +02:00
JunkJumper
7124e79df5 merge DB #4 2020-04-29 11:23:59 +02:00
JunkJumper
6edd8037b0 les script BDD avancent #4 2020-04-29 11:21:58 +02:00
AhmedSaad
60d2add18f certaines modif a JoueurVirtuel, tests a faire 2020-04-29 09:57:54 +02:00
nawfe
502a9fcc62 Traduction 2020-04-28 18:29:53 +02:00
nawfe
853534ce91 Traduction2 2020-04-28 16:11:30 +02:00
nawfe
09d2d520c3 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-28 15:36:07 +02:00
nawfe
159b34ab38 Traduction 2020-04-28 15:25:11 +02:00
Bastien NOEL
6fedf1c061 épuration du code 2020-04-28 14:49:47 +02:00
Bastien NOEL
9e57f0edd6 ajout de commentaires 2020-04-28 14:27:42 +02:00
Bastien NOEL
0a8c883595 bouton musique fonctionnel 2020-04-28 14:12:59 +02:00
Yessine Ben El Bey
77e1e2d7a8 Ajout de la musique paramètre non complet 2020-04-28 09:32:33 +02:00
nawfe
45f6e931ac Traduction 2020-04-27 18:15:24 +02:00
JunkJumper
cc6579816a Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 17:10:44 +02:00
JunkJumper
2f564f35b2 test db 2020-04-27 17:10:09 +02:00
Yessine Ben El Bey
36dff30b84 Ecran parametre 2020-04-27 17:09:53 +02:00
JunkJumper
6ae0587ce8
Delete databse.tar 2020-04-27 17:00:03 +02:00
JunkJumper
35f1785105 gitignore fix 2020-04-27 16:59:25 +02:00
JunkJumper
3926e75d1b sql final db 2020-04-27 16:58:27 +02:00
JunkJumper
977a116f9e Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 16:58:23 +02:00
Chiara
8c55091fb2 changement des 2020-04-27 16:53:32 +02:00
Chiara
9e468f5f14 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 16:06:27 +02:00
JunkJumper
71a1cc960e
Add files via upload 2020-04-27 16:04:33 +02:00
JunkJumper
15aafe859f
Delete database.sql 2020-04-27 16:04:10 +02:00
JunkJumper
30778f6ec2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 16:03:37 +02:00
JunkJumper
e547fcdcea ipt sql tar #4 2020-04-27 16:02:57 +02:00
nawfe
ec56b68cdf Traduction 2020-04-27 16:02:04 +02:00
Chiara
318d439d6f Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 15:43:19 +02:00
JunkJumper
47bbbe569c script sql #4 2020-04-27 15:42:58 +02:00
Chiara
cefc6ceb75 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 15:37:19 +02:00
Chiara
bff45c162a animation des 2020-04-27 15:37:05 +02:00
JunkJumper
d2acd6c92c Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 15:34:56 +02:00
JunkJumper
ab4bea1e95 script sql #4 2020-04-27 15:33:50 +02:00
Bastien NOEL
aa73c3c6ea correction des boutons de choix des joueurs 2020-04-27 14:32:50 +02:00
JunkJumper
3d4e66828e Database Management classes #4 2020-04-27 14:04:23 +02:00
Chiara
5ccf1a731b changement des 2020-04-27 13:56:34 +02:00
Chiara
5d97ac65b8 poeut 2020-04-27 11:43:08 +02:00
315 changed files with 11074 additions and 3715 deletions

3
.gitignore vendored
View File

@ -41,3 +41,6 @@ local.properties
# Locally stored "Eclipse launch configurations" # Locally stored "Eclipse launch configurations"
*.launch *.launch
/.clover/ /.clover/
#others
*.iml

8
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

16
.idea/libraries/lib.xml generated Normal file
View File

@ -0,0 +1,16 @@
<component name="libraryTable">
<library name="lib">
<CLASSES>
<root url="jar://$PROJECT_DIR$/lib/javafx-swt.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/javafx.controls.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/javafx.web.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/javafx.base.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/javafx.fxml.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/javafx.media.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/javafx.graphics.jar!/" />
<root url="jar://$PROJECT_DIR$/lib/javafx.swing.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

10
.idea/libraries/lib1.xml generated Normal file
View File

@ -0,0 +1,10 @@
<component name="libraryTable">
<library name="lib1">
<CLASSES>
<root url="file://$PROJECT_DIR$/javafx-sdk-11.0.2/lib" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$PROJECT_DIR$/javafx-sdk-11.0.2/lib" recursive="false" />
</library>
</component>

9
.idea/misc.xml generated Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="false" project-jdk-name="14" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/git2.iml" filepath="$PROJECT_DIR$/git2.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -19,7 +19,13 @@ Pour gagner, les Hunters et Shadow doivent éliminer tous les personnages du cam
## Comment l'utiliser ## Comment l'utiliser
Vous trouverez la documentation pour utliser notre application [ici]. Dans un premier temps, vous pouvez télécharger la dernière version de notre application en utilisant la commande :
```git clone https://github.com/PTE-SH/ShadowHunterGame.git```
Puis, il faut executez le ``ShadowHunterGame.exe`` pour pouvoir y jouer.
Ce projet repose sur le [Java JDK 11](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) pour pouvoir fonctionner.
## Auteurs ## Auteurs

12
git2.iml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="11" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="lib1" level="project" />
</component>
</module>

BIN
lib/javafx-swt.jar Normal file

Binary file not shown.

BIN
lib/javafx.base.jar Normal file

Binary file not shown.

BIN
lib/javafx.controls.jar Normal file

Binary file not shown.

BIN
lib/javafx.fxml.jar Normal file

Binary file not shown.

BIN
lib/javafx.graphics.jar Normal file

Binary file not shown.

BIN
lib/javafx.media.jar Normal file

Binary file not shown.

3
lib/javafx.properties Normal file
View File

@ -0,0 +1,3 @@
javafx.version=11.0.2
javafx.runtime.version=11.0.2+1
javafx.runtime.build=1

BIN
lib/javafx.swing.jar Normal file

Binary file not shown.

BIN
lib/javafx.web.jar Normal file

Binary file not shown.

BIN
lib/postgresql-42.2.12.jar Normal file

Binary file not shown.

BIN
ressources/cartes/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 KiB

BIN
ressources/cartes/10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 KiB

BIN
ressources/cartes/11.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 KiB

BIN
ressources/cartes/12.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 KiB

BIN
ressources/cartes/13.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 KiB

BIN
ressources/cartes/14.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 KiB

BIN
ressources/cartes/15.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 KiB

BIN
ressources/cartes/16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 KiB

BIN
ressources/cartes/17.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

BIN
ressources/cartes/18.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB

BIN
ressources/cartes/19.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB

BIN
ressources/cartes/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 KiB

BIN
ressources/cartes/20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB

BIN
ressources/cartes/21.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 KiB

BIN
ressources/cartes/22.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 KiB

BIN
ressources/cartes/23.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

BIN
ressources/cartes/24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 KiB

BIN
ressources/cartes/25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

BIN
ressources/cartes/26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 KiB

BIN
ressources/cartes/27.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 KiB

BIN
ressources/cartes/28.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 KiB

BIN
ressources/cartes/29.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
ressources/cartes/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

BIN
ressources/cartes/30.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 KiB

BIN
ressources/cartes/31.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 KiB

BIN
ressources/cartes/32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 KiB

BIN
ressources/cartes/33.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
ressources/cartes/34.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
ressources/cartes/35.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 KiB

BIN
ressources/cartes/36.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 KiB

BIN
ressources/cartes/37.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 KiB

BIN
ressources/cartes/38.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 KiB

BIN
ressources/cartes/39.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB

BIN
ressources/cartes/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 KiB

BIN
ressources/cartes/40.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
ressources/cartes/41.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 KiB

BIN
ressources/cartes/42.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 KiB

BIN
ressources/cartes/43.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

BIN
ressources/cartes/44.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 KiB

BIN
ressources/cartes/45.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 KiB

BIN
ressources/cartes/46.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 KiB

BIN
ressources/cartes/47.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 KiB

BIN
ressources/cartes/48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 KiB

BIN
ressources/cartes/49.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 KiB

BIN
ressources/cartes/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 KiB

BIN
ressources/cartes/50.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB

BIN
ressources/cartes/51.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 KiB

BIN
ressources/cartes/52.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 KiB

BIN
ressources/cartes/53.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 KiB

BIN
ressources/cartes/54.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
ressources/cartes/55.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 KiB

BIN
ressources/cartes/56.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 KiB

BIN
ressources/cartes/57.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

BIN
ressources/cartes/58.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
ressources/cartes/59.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
ressources/cartes/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 KiB

BIN
ressources/cartes/60.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
ressources/cartes/61.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
ressources/cartes/62.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 KiB

BIN
ressources/cartes/63.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 KiB

BIN
ressources/cartes/64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 KiB

BIN
ressources/cartes/65.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 KiB

BIN
ressources/cartes/66.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 KiB

BIN
ressources/cartes/67.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 KiB

BIN
ressources/cartes/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 KiB

BIN
ressources/cartes/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 KiB

BIN
ressources/cartes/9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 KiB

BIN
shDBlatest.sql Normal file

Binary file not shown.

View File

@ -1,9 +1,15 @@
package carte; package carte;
import java.io.Serializable;
import main.Joueur; import main.Joueur;
public abstract class Carte { public abstract class Carte implements Serializable {
/**
*
*/
private static final long serialVersionUID = -3227553705226975570L;
private String nom; private String nom;
private String description; private String description;

View File

@ -1,16 +1,32 @@
package carte; package carte;
import main.Joueur; import main.Joueur;
import java.io.Serializable;
import condition.Condition; import condition.Condition;
public abstract class CarteCondition extends CarteEffet{ public abstract class CarteCondition extends CarteEffet implements Serializable{
/**
*
*/
private static final long serialVersionUID = 903022795821166067L;
private Condition condition;
public CarteCondition() {
super("","");
this.condition = new Condition();
}
public CarteCondition(String nom, String description) { public CarteCondition(String nom, String description) {
super(nom, description); super(nom, description);
} }
private Condition condition;
/* /*

View File

@ -1,17 +1,27 @@
package carte; package carte;
import main.Joueur; import main.Joueur;
import java.io.Serializable;
import effet.Effet; import effet.Effet;
public abstract class CarteEffet extends Carte{ public abstract class CarteEffet extends Carte implements Serializable{
/**
*
*/
private static final long serialVersionUID = -5248405395465365805L;
private Effet effet; private Effet effet;
public CarteEffet(String nom, String description) { public CarteEffet(String nom, String description) {
super(nom, description); super(nom, description);
} }
/* /*
* @param j Appel la méthode utiliser de effet sur le joueur j * @param j Appel la méthode utiliser de effet sur le joueur j
*/ */

View File

@ -0,0 +1,29 @@
package carte;
import effet.Effet;
import main.Joueur;
public abstract class CarteEquipement extends CartePiochable{
/**
*
*/
private static final long serialVersionUID = 7537771209935892801L;
public CarteEquipement(Type t, Effet effet) {
super(t, effet);
}
@Override
public void utiliser(Joueur j) {
if(!j.getEquipements().contains(this)) {
j.ajouterEquipement(this);
}
super.utiliser(j);
}
public abstract void reverse(Joueur j);
}

View File

@ -0,0 +1,26 @@
package carte;
import effet.Effet;
import main.Joueur;
public class CarteEquipementEffet extends CarteEquipement {
public CarteEquipementEffet(Type t, Effet effet) {
super(t, effet);
// TODO Auto-generated constructor stub
}
/**
*
*/
private static final long serialVersionUID = -7036514419711836673L;
@Override
public void reverse(Joueur j) {
// TODO Auto-generated method stub
}
}

View File

@ -0,0 +1,35 @@
package carte;
import condition.Condition;
import effet.Effet;
import effet.action.ActionAltererStatistiquesJoueur;
import main.Joueur;
public class CarteEquipementStat extends CarteEquipement{
public CarteEquipementStat(Type t, Effet effet) {
super(t, effet);
}
public CarteEquipementStat(Type t, Effet effet, Condition condition) {
super(t, effet);
this.setCondition(condition);
}
/**
*
*/
private static final long serialVersionUID = 1602387056611454284L;
@Override
public void reverse(Joueur j) {
ActionAltererStatistiquesJoueur action = ((ActionAltererStatistiquesJoueur) this.getEffet().getAction()).getReverseAction();
action.affecte(j, j);
}
}

View File

@ -13,12 +13,18 @@ public class CarteLieu extends CarteEffet{
private Point coordinates; private Point coordinates;
private CarteLieu voisin; private CarteLieu voisin;
public CarteLieu(Point point) {
this("","",point);
}
public CarteLieu(String nom, String description, Point p) { public CarteLieu(String nom, String description, Point p) {
super(nom, description); super(nom, description);
this.coordinates = p; this.coordinates = p;
this.listeJoueurs = new ArrayList<Joueur>(); this.listeJoueurs = new ArrayList<Joueur>();
} }
/* /*
* @param j Appel la méthode utiliser de effet sur le joueur j * @param j Appel la méthode utiliser de effet sur le joueur j
*/ */
@ -47,6 +53,11 @@ public class CarteLieu extends CarteEffet{
} }
} }
public CarteLieu getVoisin() {
return voisin;
}
public void setVoisin(CarteLieu cl) { public void setVoisin(CarteLieu cl) {
this.voisin = cl; this.voisin = cl;
} }

View File

@ -0,0 +1,36 @@
package carte;
import java.awt.Point;
import java.util.List;
import main.Joueur;
import main.Pioche;
public class CarteLieuMultiple extends CarteLieu{
/**
*
*/
private static final long serialVersionUID = -497959392470353155L;
private List<Pioche> pioches;
public CarteLieuMultiple(Point point) {
super("","",point);
}
/*
* @param j Appel la méthode utiliser de effet sur le joueur j
*/
public void utiliser(Joueur j) {
Pioche p = (Pioche) j.choisir(pioches, Pioche.class);
System.out.println(pioches+ " "+p);
System.out.println(p.getStack());
Carte c = p.piocher(j);
c.utiliser(j);
}
public void setPioches(List<Pioche> pioches) {
this.pioches = pioches;
}
}

View File

@ -2,17 +2,28 @@ package carte;
import java.awt.Point; import java.awt.Point;
import carte.CartePiochable.Type;
import main.Joueur; import main.Joueur;
import main.Pioche; import main.Pioche;
import main.Type;
public class CarteLieuType<T extends Type> extends CarteLieu{ public class CarteLieuType extends CarteLieu{
private Pioche<T> pioche; /**
*
*/
private static final long serialVersionUID = -497959392470353155L;
private Pioche pioche;
private CartePiochable.Type type;
public CarteLieuType(String name, String description ,Point coordinates,Pioche<T> pioche) { public CarteLieuType(Type type, Point point) {
super("","",point);
this.setType(type);
}
public CarteLieuType(CartePiochable.Type type,String name, String description ,Point coordinates,Pioche pioche) {
super(name , description , coordinates); super(name , description , coordinates);
this.setType(type);
this.pioche = pioche; this.pioche = pioche;
} }
@ -20,10 +31,20 @@ public class CarteLieuType<T extends Type> extends CarteLieu{
* @param j Appel la méthode utiliser de effet sur le joueur j * @param j Appel la méthode utiliser de effet sur le joueur j
*/ */
public void utiliser(Joueur j) { public void utiliser(Joueur j) {
System.out.println(pioche);
CartePiochable<?> carte = pioche.piocher(); CartePiochable carte = pioche.piocher(j);
carte.utiliser(j); carte.utiliser(j);
} }
public void setPioche(Pioche p) {
this.pioche = p;
}
public CartePiochable.Type getType() {
return type;
}
public void setType(CartePiochable.Type type) {
this.type = type;
}
} }

View File

@ -1,21 +1,55 @@
package carte; package carte;
import java.io.Serializable;
import condition.Condition;
import effet.Effet;
import main.GestionnaireJeu;
import main.Joueur; import main.Joueur;
import main.Type;
public class CartePiochable<T extends Type> extends CarteCondition{ public class CartePiochable extends CarteCondition implements Serializable{
public CartePiochable(String nom, String description) { private static final long serialVersionUID = 2391013233873750967L;
private Type type;
public enum Type{
LUMIERE,
TENEBRE,
VISION
}
public CartePiochable(Type t, String nom, String description) {
super(nom, description); super(nom, description);
// TODO Auto-generated constructor stub this.type = t;
}
public CartePiochable(Type t, Effet e, Condition c) {
super();
this.type = t;
this.setEffet(e);
this.setCondition(c);
}
public CartePiochable(Type t, Effet effet) {
super();
this.type = t;
this.setEffet(effet);
this.setCondition(new Condition());
} }
/* /*
* @param j Appel la méthode utiliser de effet sur le joueur j * @param j Appel la méthode utiliser de effet sur le joueur j
*/ */
@Override
public void utiliser(Joueur j) { public void utiliser(Joueur j) {
GestionnaireJeu gj = GestionnaireJeu.getGestionnaireJeu();
System.out.println("CartePiochable "+this + " Condition : "+this.getCondition()+" Effet : "+this.getEffet()+" Action : "+this.getEffet().getAction());
super.utiliser(j); super.utiliser(j);
} }
public Type getType() {
return type;
}
} }

View File

@ -0,0 +1,44 @@
package carte;
import java.io.Serializable;
import condition.Condition;
import effet.EffetChoisirCible;
import effet.action.Action;
import main.Contexte;
import main.GestionnaireJeu;
import main.Joueur;
public class CarteVision extends CartePiochable implements Serializable{
/**
*
*/
private static final long serialVersionUID = 903022795821166067L;
public CarteVision(Action a, Condition c) {
super(Type.VISION, "","");
this.setEffet(new EffetChoisirCible(a));
this.setCondition(c);
}
/*
* @param j le joueur utilisant son effet
*/
@Override
public void utiliser(Joueur j1) {
GestionnaireJeu gj = GestionnaireJeu.getGestionnaireJeu();
gj.piocher(j1,this);
Joueur j2 = j1.choisiParmisTous();
boolean M = j2.isMetamorph();
boolean Co = this.getCondition().isTrue(j2);
gj.recevoirCarteVision(j2,this);
boolean C = j2.choisir(Contexte.CHOISIR_VISION);
if((!(M) && Co) || (M && C)) {
this.getEffet().getAction().affecte(j1, j2);
}
}
}

View File

@ -1,23 +0,0 @@
package carte;
import main.Joueur;
import main.Type;
public abstract class Equipement extends CartePiochable<Type>{
public Equipement(String nom, String description) {
super(nom, description);
// TODO Auto-generated constructor stub
}
public void utiliser(Joueur j) {
if(!j.getEquipements().contains(this)) {
j.ajouterEquipement(this);
}
super.utiliser(j);
}
public abstract void reverse(Joueur j);
}

View File

@ -1,17 +0,0 @@
package carte;
import effet.action.ActionAltererStatistiquesJoueur;
import main.Joueur;
public class EquipementStat extends Equipement{
public EquipementStat(String nom, String description) {
super(nom, description);
}
@Override
public void reverse(Joueur j) {
ActionAltererStatistiquesJoueur action = ((ActionAltererStatistiquesJoueur) this.getEffet().getAction()).getReverseAction();
action.affecte(j, j);
}
}

Some files were not shown because too many files have changed in this diff Show More