143 Commits

Author SHA1 Message Date
892dd6da73 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-07 16:58:36 +02:00
144ffd5434 Ajout constructeur de Plateau en s'appuyant de RessourceLoader 2020-05-07 16:58:31 +02:00
a2bc3f1dd4 Paramètre mettre les cases cochés et controllerPause mettre les cases cochés 2020-05-07 14:46:01 +02:00
6f6c2af608 changements pour executable 2020-05-07 14:05:14 +02:00
a3ae506ee7 Fix pauseController 2020-05-07 11:32:33 +02:00
77166d9180 Bouton retour choix joueur 2020-05-07 11:30:31 +02:00
ce4a6bfeac Bouton retour joueur 2020-05-07 11:28:01 +02:00
9fca28f7bb Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 17:50:12 +02:00
14bcbe0347 Ressource loader fonctionnel 2020-05-06 17:49:55 +02:00
7d2ae20c6d correction d'une erreur avec le menu pause 2020-05-06 17:21:43 +02:00
fb161fec2c réglage du volume de la musique dans les paramètre et le menu pause 2020-05-06 17:10:07 +02:00
3e0d0e7efb RessourceLoader 2020-05-06 16:47:22 +02:00
35f87bd62e RessourceLoader 2020-05-06 16:46:33 +02:00
9152de5f78 DB voir avec paul #4 2020-05-06 16:39:55 +02:00
fdf6fed74d Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 16:19:40 +02:00
2eba98b240 Quitter plateau non fini 2020-05-06 16:19:16 +02:00
4734e9bb7d Merging 2020-05-06 16:17:26 +02:00
24cc4909bf Changement des classes types par des enum 2020-05-06 16:15:36 +02:00
67d955b6d8 controller carte vision 2020-05-06 16:00:14 +02:00
4843f9932e BDD formatage script 90% #4 2020-05-06 15:40:34 +02:00
7d331ee7da correction merge main 2020-05-06 15:33:23 +02:00
2edaa6156e revert stash 2020-05-06 15:32:07 +02:00
e7ca21a33e revert stash 2020-05-06 15:31:27 +02:00
34e3690ba9 controller piocher et lancer des 2020-05-06 15:24:39 +02:00
13ae661b3b Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 15:11:02 +02:00
2a730c2c1a readme 2020-05-06 15:10:48 +02:00
1b554ad75c Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 14:40:24 +02:00
9885ed12ca Retrieving cards 2020-05-06 14:39:43 +02:00
96883dad89 ajout des regles du jeu 2020-05-06 14:37:59 +02:00
71b7a1cb2b Boutton quitter 2020-05-06 14:07:51 +02:00
70a214248d Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 13:27:04 +02:00
be7f6076f9 querry readAllBytes OK String to void #4 2020-05-06 13:26:53 +02:00
ce713d07e1 minor change 2020-05-06 13:25:49 +02:00
e13135d180 minor change 2020-05-06 13:25:08 +02:00
975cedb690 querry readAllBytes OK #4 2020-05-06 13:24:50 +02:00
36991016ba Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 13:22:09 +02:00
ff73b605a6 querry readAllBytes OK #4 2020-05-06 13:21:16 +02:00
173b9d6de0 ajout d'un bouton parametre dans le menu 2020-05-06 12:47:56 +02:00
5ca48d7f19 musique fonctionnel dans le menu pause 2020-05-06 12:19:24 +02:00
1a2b50ffb2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-06 12:04:35 +02:00
e91b24c13a Images + ajout des cartes visions et ténèbres 2020-05-06 12:04:30 +02:00
624e12135f mise au point des tests IA 2020-05-06 10:03:37 +02:00
17f5d37c5e generalisation lancer des, choisir joueur, choisir equipement 2020-05-05 15:38:11 +02:00
2ab9df30ed Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 15:29:02 +02:00
f8be85ad5e Création des cartes lumières pour insertion dans la bdd 2020-05-05 15:28:51 +02:00
e5a28a1a4d création classe pour choix joueur 2020-05-05 14:49:38 +02:00
901f872e3e adaptation interfaces boolean 2020-05-05 14:21:34 +02:00
d7753d5182 adaptation interfaces boolean 2020-05-05 14:20:18 +02:00
aeb17ba303 nouvelle BDD #4 2020-05-05 14:16:37 +02:00
8952512b3e TestAddingCard 2020-05-05 13:53:54 +02:00
fea2ecba5a Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 13:13:44 +02:00
ea4d4612ab Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 13:13:29 +02:00
8e348d5a3e liasons interface joué tour 2020-05-05 13:13:25 +02:00
222605628c Récupération objet bdd 2020-05-05 13:13:21 +02:00
e1baaa02f8 db #4 2020-05-05 11:24:05 +02:00
40ad1cb599 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-05 10:51:36 +02:00
7f9d8bce5c Fin de partie 2020-05-05 10:51:27 +02:00
63b12cbf9a modif barre de vie plateau 2020-05-05 10:50:49 +02:00
628dc33bb2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-05-04 19:45:53 +02:00
f93f6b534e Traduction suite 2020-05-04 19:36:39 +02:00
808712f6b6 correction des problèmes liés aux effets sonores dans le menu pause 2020-05-04 17:54:13 +02:00
54e2ae4039 ajustement et ajout d'effets sonores 2020-05-04 16:15:01 +02:00
8627870e86 ajout menu pause 2020-05-04 16:07:25 +02:00
c94e1a46af effets sonores fonctionnels 2020-05-04 15:04:24 +02:00
eb5aacc8ce changement des chemins pour executable 2020-05-04 14:49:12 +02:00
98a43e0363 enlevé un truc de debugage 2020-05-04 14:42:37 +02:00
745e8597ae changements pour executable x2 2020-05-04 14:41:30 +02:00
e0b60aff40 changement de chemins pour executable 2020-05-04 13:57:50 +02:00
e0b965af5f update database #4 2020-05-04 13:41:10 +02:00
80a0c89d49 PlateauTest2 déplacement des pions 2020-05-04 11:14:52 +02:00
afaef5411b Fix bug tours, choix fonctionnels 2020-05-03 17:08:45 +02:00
03499c7191 Version fonctionnelle des rotations zoneJoueur, voir PlateauTest2 2020-05-03 15:03:46 +02:00
2ab87b04b2 Prise en compte des zones joueurs 2020-05-01 19:09:48 +02:00
861b66f439 tests supplementaires IA, revoir choix equipements 2020-05-01 09:53:35 +02:00
51e4d845f0 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-30 19:10:48 +02:00
ba5976ec93 Amélioration plateau 2020-04-30 19:10:41 +02:00
11bf281ea3 ajout des effets sonores 2020-04-30 17:11:50 +02:00
1bc6fd188d adaptation interfaces 2020-04-30 15:36:37 +02:00
5a8f81c40f utf8 traduction 2020-04-30 14:54:55 +02:00
99507e8d39 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-30 14:13:29 +02:00
b7fdb22edc Traduction 2020-04-30 14:12:31 +02:00
26f8971225 Merge conflict 2020-04-30 14:10:19 +02:00
d476733172 Plateau.fxml 2020-04-30 14:00:09 +02:00
6c9f24b1d7 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-30 13:58:00 +02:00
12bf8f788e PlateauController et JoueurIHM 2020-04-30 13:57:53 +02:00
fe10fc1c53 changement plateau 2020-04-30 13:54:54 +02:00
660a38a0f5 changement plateau 2020-04-30 13:53:58 +02:00
fa90f4b6d9 PlateauTest.fxml 2020-04-30 13:39:49 +02:00
255e8012bf Traducion 2020-04-30 13:09:18 +02:00
56a1177eaf Merge 2020-04-30 11:43:55 +02:00
b6932c530e Factoriser PlateauController 2020-04-30 11:41:15 +02:00
b293b3ed01 prise en compte des pions 2020-04-30 11:40:25 +02:00
8042514def fait enum contexte et changements a tester sur IA 2020-04-30 10:30:55 +02:00
641d298bd3 Database script continue + tests Junit5 #4 2020-04-29 19:14:18 +02:00
feee1885bd supression interfaces inutiles 2020-04-29 17:30:35 +02:00
ab74bb0fdf lancement jouer tour auto plateau 2020-04-29 16:56:15 +02:00
d4a52236e1 removed merge conflicts 2020-04-29 16:46:09 +02:00
1c2426aad5 removed merge conflicts 2020-04-29 16:45:17 +02:00
47a2be3252 changement plateau 2020-04-29 15:32:30 +02:00
f8996e10ee changement plateau 2020-04-29 15:31:59 +02:00
eea99d2341 Delete w.txt 2020-04-29 15:30:29 +02:00
2a7002cdfb BDD jar API #4 2020-04-29 15:30:04 +02:00
19d1e6cdd6 BDD TableGenerator #4 2020-04-29 15:18:48 +02:00
7926ff0bae Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-29 15:00:10 +02:00
d3cc6634fb removed merge conflicts 2020-04-29 15:00:04 +02:00
e0e8278da7 Merge remote-tracking branch 'origin/rollingDice' into development 2020-04-29 12:23:27 +02:00
881c323481 petit truc sur IA 2020-04-29 11:37:27 +02:00
7124e79df5 merge DB #4 2020-04-29 11:23:59 +02:00
6edd8037b0 les script BDD avancent #4 2020-04-29 11:21:58 +02:00
60d2add18f certaines modif a JoueurVirtuel, tests a faire 2020-04-29 09:57:54 +02:00
502a9fcc62 Traduction 2020-04-28 18:29:53 +02:00
853534ce91 Traduction2 2020-04-28 16:11:30 +02:00
09d2d520c3 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-28 15:36:07 +02:00
159b34ab38 Traduction 2020-04-28 15:25:11 +02:00
6fedf1c061 épuration du code 2020-04-28 14:49:47 +02:00
9e57f0edd6 ajout de commentaires 2020-04-28 14:27:42 +02:00
0a8c883595 bouton musique fonctionnel 2020-04-28 14:12:59 +02:00
77e1e2d7a8 Ajout de la musique paramètre non complet 2020-04-28 09:32:33 +02:00
45f6e931ac Traduction 2020-04-27 18:15:24 +02:00
cc6579816a Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 17:10:44 +02:00
2f564f35b2 test db 2020-04-27 17:10:09 +02:00
36dff30b84 Ecran parametre 2020-04-27 17:09:53 +02:00
6ae0587ce8 Delete databse.tar 2020-04-27 17:00:03 +02:00
35f1785105 gitignore fix 2020-04-27 16:59:25 +02:00
3926e75d1b sql final db 2020-04-27 16:58:27 +02:00
977a116f9e Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 16:58:23 +02:00
8c55091fb2 changement des 2020-04-27 16:53:32 +02:00
9e468f5f14 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 16:06:27 +02:00
71a1cc960e Add files via upload 2020-04-27 16:04:33 +02:00
15aafe859f Delete database.sql 2020-04-27 16:04:10 +02:00
30778f6ec2 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 16:03:37 +02:00
e547fcdcea ipt sql tar #4 2020-04-27 16:02:57 +02:00
ec56b68cdf Traduction 2020-04-27 16:02:04 +02:00
318d439d6f Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 15:43:19 +02:00
47bbbe569c script sql #4 2020-04-27 15:42:58 +02:00
cefc6ceb75 Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 15:37:19 +02:00
bff45c162a animation des 2020-04-27 15:37:05 +02:00
d2acd6c92c Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development 2020-04-27 15:34:56 +02:00
ab4bea1e95 script sql #4 2020-04-27 15:33:50 +02:00
aa73c3c6ea correction des boutons de choix des joueurs 2020-04-27 14:32:50 +02:00
3d4e66828e Database Management classes #4 2020-04-27 14:04:23 +02:00
5ccf1a731b changement des 2020-04-27 13:56:34 +02:00
5d97ac65b8 poeut 2020-04-27 11:43:08 +02:00
272 changed files with 7291 additions and 3665 deletions

3
.gitignore vendored
View File

@ -41,3 +41,6 @@ local.properties
# Locally stored "Eclipse launch configurations"
*.launch
/.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
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

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;
import java.io.Serializable;
import main.Joueur;
public abstract class Carte {
public abstract class Carte implements Serializable {
/**
*
*/
private static final long serialVersionUID = -3227553705226975570L;
private String nom;
private String description;

View File

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

View File

@ -1,17 +1,27 @@
package carte;
import main.Joueur;
import java.io.Serializable;
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;
public CarteEffet(String nom, String description) {
super(nom, description);
}
/*
* @param j Appel la méthode utiliser de effet sur le joueur j
*/

View File

@ -0,0 +1,28 @@
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);
}
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 CarteLieu voisin;
public CarteLieu(Point point) {
this("","",point);
}
public CarteLieu(String nom, String description, Point p) {
super(nom, description);
this.coordinates = p;
this.listeJoueurs = new ArrayList<Joueur>();
}
/*
* @param j Appel la méthode utiliser de effet sur le joueur j
*/

View File

@ -0,0 +1,35 @@
package carte;
import java.awt.Point;
import java.util.List;
import carte.CartePiochable.Type;
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);
Carte c = p.piocher();
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 carte.CartePiochable.Type;
import main.Joueur;
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);
this.setType(type);
this.pioche = pioche;
}
@ -20,10 +31,19 @@ public class CarteLieuType<T extends Type> extends CarteLieu{
* @param j Appel la méthode utiliser de effet sur le joueur j
*/
public void utiliser(Joueur j) {
CartePiochable<?> carte = pioche.piocher();
CartePiochable carte = pioche.piocher();
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,14 +1,38 @@
package carte;
import java.io.Serializable;
import condition.Condition;
import effet.Effet;
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);
// TODO Auto-generated constructor stub
}
public CartePiochable(Type t, Effet e, Condition c) {
super();
this.setEffet(e);
this.setCondition(c);
}
public CartePiochable(Type t, Effet effet) {
super();
this.type = t;
this.setEffet(effet);
this.setCondition(new Condition());
}
/*
@ -18,4 +42,8 @@ public class CartePiochable<T extends Type> extends CarteCondition{
super.utiliser(j);
}
public Type getType() {
return type;
}
}

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);
}
}

View File

@ -1,8 +1,15 @@
package condition;
import java.io.Serializable;
import main.Joueur;
public class Condition {
public class Condition implements Serializable{
/**
*
*/
private static final long serialVersionUID = 8276438989479754732L;
public boolean isTrue(Joueur joueur) {
return true;
}

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