Compare commits
261 Commits
rollingDic
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
595ef1e6f2 | ||
|
2be6ee8e62 | ||
|
f619bcea3e | ||
|
c07fb7afca | ||
|
0b9bf5cb13 | ||
|
d464b37f8f | ||
|
0f23620510 | ||
|
0e946aff65 | ||
|
aa6dc806b2 | ||
|
889439b741 | ||
|
5d6704100b | ||
|
9c7624898e | ||
|
b8d0dde99d | ||
|
bee7c7894d | ||
|
0558d127e4 | ||
|
25205bf874 | ||
|
7c37fd3a05 | ||
|
8c3ad11a52 | ||
|
20ce6cc2e3 | ||
|
b37a111c35 | ||
|
90bb5a2cdd | ||
|
d024829cec | ||
|
d32233e61e | ||
|
bcb5897c71 | ||
|
462b04b54e | ||
|
bdd1311851 | ||
|
e0a99f1a1a | ||
|
7ae92fdddb | ||
|
48a2460301 | ||
|
bedabccb2e | ||
|
33e67b4dff | ||
|
cee8e76215 | ||
|
4951e7798e | ||
|
705503a7f1 | ||
|
19439fadfe | ||
|
1b3c4aa0ae | ||
|
4718e00771 | ||
|
4263869d58 | ||
|
84d63bd9c6 | ||
|
1c28ec2459 | ||
|
22b5c8cf56 | ||
|
105d79ebb3 | ||
|
75e611f2b1 | ||
|
52ae8c66d3 | ||
|
1729b51780 | ||
|
0963e6f1c2 | ||
|
3dacaac186 | ||
|
43fea99107 | ||
|
f0749eb6db | ||
|
38c9dc8e26 | ||
|
d858b1bcb9 | ||
|
6bdd64a1cf | ||
|
fc717845c4 | ||
|
5e2bc89af0 | ||
|
3f2f861624 | ||
|
a866aa6914 | ||
|
44d8ec282e | ||
|
f628d5a261 | ||
|
b69955273d | ||
|
3d059d5747 | ||
|
f7df74eb46 | ||
|
c7018656c1 | ||
|
1f6ee979a1 | ||
|
b182af79a4 | ||
|
b51df99297 | ||
|
01fef8fc77 | ||
|
dc3414c023 | ||
|
80f7266ffb | ||
|
d8df8f3833 | ||
|
697a35679c | ||
|
83c080f719 | ||
|
006fa4a923 | ||
|
d61a12324f | ||
|
8963221080 | ||
|
e1b208b16d | ||
|
fc94ebc99f | ||
|
f1a46ada87 | ||
|
985a085e74 | ||
|
60cfeddaf1 | ||
|
7a689e6007 | ||
|
0f0dc65d3e | ||
|
b319b27ab1 | ||
|
ed8789d67d | ||
|
c882fe1963 | ||
|
b0b506cfb0 | ||
|
5cb64604e5 | ||
|
5d9ba89bed | ||
|
70f259649c | ||
|
3851b72149 | ||
|
f2ebbd627a | ||
|
1137478053 | ||
|
77f7f3e0d9 | ||
|
f977a55c5f | ||
|
c9046f1316 | ||
|
4d0d06de12 | ||
|
b595503b7b | ||
|
84b8617e31 | ||
|
df54f21dfd | ||
|
0cb58a15aa | ||
|
57376feddb | ||
|
94b5f1dbb7 | ||
|
b10e068a28 | ||
|
3e88a7d1a7 | ||
|
ff66ba807a | ||
|
02a15030bb | ||
|
0367d64882 | ||
|
1b69f11ce7 | ||
|
5ac8589818 | ||
|
abacff2a17 | ||
|
d6fe0f0d80 | ||
|
5e1ee06436 | ||
|
05c2b496a2 | ||
|
3e13aefcce | ||
|
a6a8b326d9 | ||
|
78f251d5f1 | ||
|
ffa5398c4f | ||
|
caf0e8db7c | ||
|
ff4f0aaab1 | ||
|
892dd6da73 | ||
|
144ffd5434 | ||
|
a2bc3f1dd4 | ||
|
6f6c2af608 | ||
|
a3ae506ee7 | ||
|
77166d9180 | ||
|
ce4a6bfeac | ||
|
9fca28f7bb | ||
|
14bcbe0347 | ||
|
7d2ae20c6d | ||
|
fb161fec2c | ||
|
3e0d0e7efb | ||
|
35f87bd62e | ||
|
9152de5f78 | ||
|
fdf6fed74d | ||
|
2eba98b240 | ||
|
4734e9bb7d | ||
|
24cc4909bf | ||
|
67d955b6d8 | ||
|
4843f9932e | ||
|
7d331ee7da | ||
|
2edaa6156e | ||
|
e7ca21a33e | ||
|
34e3690ba9 | ||
|
13ae661b3b | ||
|
2a730c2c1a | ||
|
1b554ad75c | ||
|
9885ed12ca | ||
|
96883dad89 | ||
|
71b7a1cb2b | ||
|
70a214248d | ||
|
be7f6076f9 | ||
|
ce713d07e1 | ||
|
e13135d180 | ||
|
975cedb690 | ||
|
36991016ba | ||
|
ff73b605a6 | ||
|
173b9d6de0 | ||
|
5ca48d7f19 | ||
|
1a2b50ffb2 | ||
|
e91b24c13a | ||
|
624e12135f | ||
|
17f5d37c5e | ||
|
2ab9df30ed | ||
|
f8be85ad5e | ||
|
e5a28a1a4d | ||
|
901f872e3e | ||
|
d7753d5182 | ||
|
aeb17ba303 | ||
|
8952512b3e | ||
|
fea2ecba5a | ||
|
ea4d4612ab | ||
|
8e348d5a3e | ||
|
222605628c | ||
|
e1baaa02f8 | ||
|
40ad1cb599 | ||
|
7f9d8bce5c | ||
|
63b12cbf9a | ||
|
628dc33bb2 | ||
|
f93f6b534e | ||
|
808712f6b6 | ||
|
54e2ae4039 | ||
|
8627870e86 | ||
|
c94e1a46af | ||
|
eb5aacc8ce | ||
|
98a43e0363 | ||
|
745e8597ae | ||
|
e0b60aff40 | ||
|
e0b965af5f | ||
|
80a0c89d49 | ||
|
afaef5411b | ||
|
03499c7191 | ||
|
2ab87b04b2 | ||
|
861b66f439 | ||
|
51e4d845f0 | ||
|
ba5976ec93 | ||
|
11bf281ea3 | ||
|
1bc6fd188d | ||
|
5a8f81c40f | ||
|
99507e8d39 | ||
|
b7fdb22edc | ||
|
26f8971225 | ||
|
d476733172 | ||
|
6c9f24b1d7 | ||
|
12bf8f788e | ||
|
fe10fc1c53 | ||
|
660a38a0f5 | ||
|
fa90f4b6d9 | ||
|
255e8012bf | ||
|
56a1177eaf | ||
|
b6932c530e | ||
|
b293b3ed01 | ||
|
8042514def | ||
|
641d298bd3 | ||
|
feee1885bd | ||
|
ab74bb0fdf | ||
|
d4a52236e1 | ||
|
1c2426aad5 | ||
|
47a2be3252 | ||
|
f8996e10ee | ||
|
eea99d2341 | ||
|
2a7002cdfb | ||
|
19d1e6cdd6 | ||
|
7926ff0bae | ||
|
d3cc6634fb | ||
|
e0e8278da7 | ||
|
881c323481 | ||
|
7124e79df5 | ||
|
6edd8037b0 | ||
|
60d2add18f | ||
|
502a9fcc62 | ||
|
853534ce91 | ||
|
09d2d520c3 | ||
|
159b34ab38 | ||
|
6fedf1c061 | ||
|
9e57f0edd6 | ||
|
0a8c883595 | ||
|
77e1e2d7a8 | ||
|
45f6e931ac | ||
|
cc6579816a | ||
|
2f564f35b2 | ||
|
36dff30b84 | ||
|
6ae0587ce8 | ||
|
35f1785105 | ||
|
3926e75d1b | ||
|
977a116f9e | ||
|
8c55091fb2 | ||
|
9e468f5f14 | ||
|
71a1cc960e | ||
|
15aafe859f | ||
|
30778f6ec2 | ||
|
e547fcdcea | ||
|
ec56b68cdf | ||
|
318d439d6f | ||
|
47bbbe569c | ||
|
cefc6ceb75 | ||
|
bff45c162a | ||
|
d2acd6c92c | ||
|
ab4bea1e95 | ||
|
aa73c3c6ea | ||
|
3d4e66828e | ||
|
5ccf1a731b | ||
|
5d97ac65b8 |
3
.gitignore
vendored
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -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
@ -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
BIN
lib/javafx.base.jar
Normal file
BIN
lib/javafx.controls.jar
Normal file
BIN
lib/javafx.fxml.jar
Normal file
BIN
lib/javafx.graphics.jar
Normal file
BIN
lib/javafx.media.jar
Normal file
3
lib/javafx.properties
Normal 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
BIN
lib/javafx.web.jar
Normal file
BIN
lib/postgresql-42.2.12.jar
Normal file
BIN
ressources/cartes/1.png
Normal file
After Width: | Height: | Size: 560 KiB |
BIN
ressources/cartes/10.png
Normal file
After Width: | Height: | Size: 541 KiB |
BIN
ressources/cartes/11.png
Normal file
After Width: | Height: | Size: 564 KiB |
BIN
ressources/cartes/12.png
Normal file
After Width: | Height: | Size: 629 KiB |
BIN
ressources/cartes/13.png
Normal file
After Width: | Height: | Size: 643 KiB |
BIN
ressources/cartes/14.png
Normal file
After Width: | Height: | Size: 546 KiB |
BIN
ressources/cartes/15.png
Normal file
After Width: | Height: | Size: 562 KiB |
BIN
ressources/cartes/16.png
Normal file
After Width: | Height: | Size: 555 KiB |
BIN
ressources/cartes/17.png
Normal file
After Width: | Height: | Size: 598 KiB |
BIN
ressources/cartes/18.png
Normal file
After Width: | Height: | Size: 585 KiB |
BIN
ressources/cartes/19.png
Normal file
After Width: | Height: | Size: 585 KiB |
BIN
ressources/cartes/2.png
Normal file
After Width: | Height: | Size: 549 KiB |
BIN
ressources/cartes/20.png
Normal file
After Width: | Height: | Size: 585 KiB |
BIN
ressources/cartes/21.png
Normal file
After Width: | Height: | Size: 595 KiB |
BIN
ressources/cartes/22.png
Normal file
After Width: | Height: | Size: 570 KiB |
BIN
ressources/cartes/23.png
Normal file
After Width: | Height: | Size: 575 KiB |
BIN
ressources/cartes/24.png
Normal file
After Width: | Height: | Size: 578 KiB |
BIN
ressources/cartes/25.png
Normal file
After Width: | Height: | Size: 583 KiB |
BIN
ressources/cartes/26.png
Normal file
After Width: | Height: | Size: 638 KiB |
BIN
ressources/cartes/27.png
Normal file
After Width: | Height: | Size: 592 KiB |
BIN
ressources/cartes/28.png
Normal file
After Width: | Height: | Size: 645 KiB |
BIN
ressources/cartes/29.png
Normal file
After Width: | Height: | Size: 584 KiB |
BIN
ressources/cartes/3.png
Normal file
After Width: | Height: | Size: 537 KiB |
BIN
ressources/cartes/30.png
Normal file
After Width: | Height: | Size: 577 KiB |
BIN
ressources/cartes/31.png
Normal file
After Width: | Height: | Size: 577 KiB |
BIN
ressources/cartes/32.png
Normal file
After Width: | Height: | Size: 591 KiB |
BIN
ressources/cartes/33.png
Normal file
After Width: | Height: | Size: 584 KiB |
BIN
ressources/cartes/34.png
Normal file
After Width: | Height: | Size: 584 KiB |
BIN
ressources/cartes/35.png
Normal file
After Width: | Height: | Size: 587 KiB |
BIN
ressources/cartes/36.png
Normal file
After Width: | Height: | Size: 666 KiB |
BIN
ressources/cartes/37.png
Normal file
After Width: | Height: | Size: 582 KiB |
BIN
ressources/cartes/38.png
Normal file
After Width: | Height: | Size: 600 KiB |
BIN
ressources/cartes/39.png
Normal file
After Width: | Height: | Size: 585 KiB |
BIN
ressources/cartes/4.png
Normal file
After Width: | Height: | Size: 564 KiB |
BIN
ressources/cartes/40.png
Normal file
After Width: | Height: | Size: 584 KiB |
BIN
ressources/cartes/41.png
Normal file
After Width: | Height: | Size: 600 KiB |
BIN
ressources/cartes/42.png
Normal file
After Width: | Height: | Size: 658 KiB |
BIN
ressources/cartes/43.png
Normal file
After Width: | Height: | Size: 586 KiB |
BIN
ressources/cartes/44.png
Normal file
After Width: | Height: | Size: 579 KiB |
BIN
ressources/cartes/45.png
Normal file
After Width: | Height: | Size: 652 KiB |
BIN
ressources/cartes/46.png
Normal file
After Width: | Height: | Size: 582 KiB |
BIN
ressources/cartes/47.png
Normal file
After Width: | Height: | Size: 579 KiB |
BIN
ressources/cartes/48.png
Normal file
After Width: | Height: | Size: 582 KiB |
BIN
ressources/cartes/49.png
Normal file
After Width: | Height: | Size: 593 KiB |
BIN
ressources/cartes/5.png
Normal file
After Width: | Height: | Size: 556 KiB |
BIN
ressources/cartes/50.png
Normal file
After Width: | Height: | Size: 585 KiB |
BIN
ressources/cartes/51.png
Normal file
After Width: | Height: | Size: 653 KiB |
BIN
ressources/cartes/52.png
Normal file
After Width: | Height: | Size: 577 KiB |
BIN
ressources/cartes/53.png
Normal file
After Width: | Height: | Size: 629 KiB |
BIN
ressources/cartes/54.png
Normal file
After Width: | Height: | Size: 584 KiB |
BIN
ressources/cartes/55.png
Normal file
After Width: | Height: | Size: 632 KiB |
BIN
ressources/cartes/56.png
Normal file
After Width: | Height: | Size: 645 KiB |
BIN
ressources/cartes/57.png
Normal file
After Width: | Height: | Size: 586 KiB |
BIN
ressources/cartes/58.png
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
ressources/cartes/59.png
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
ressources/cartes/6.png
Normal file
After Width: | Height: | Size: 561 KiB |
BIN
ressources/cartes/60.png
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
ressources/cartes/61.png
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
ressources/cartes/62.png
Normal file
After Width: | Height: | Size: 661 KiB |
BIN
ressources/cartes/63.png
Normal file
After Width: | Height: | Size: 619 KiB |
BIN
ressources/cartes/64.png
Normal file
After Width: | Height: | Size: 671 KiB |
BIN
ressources/cartes/65.png
Normal file
After Width: | Height: | Size: 649 KiB |
BIN
ressources/cartes/66.png
Normal file
After Width: | Height: | Size: 635 KiB |
BIN
ressources/cartes/67.png
Normal file
After Width: | Height: | Size: 611 KiB |
BIN
ressources/cartes/7.png
Normal file
After Width: | Height: | Size: 560 KiB |
BIN
ressources/cartes/8.png
Normal file
After Width: | Height: | Size: 554 KiB |
BIN
ressources/cartes/9.png
Normal file
After Width: | Height: | Size: 541 KiB |
BIN
shDBlatest.sql
Normal 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;
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
29
src/carte/CarteEquipement.java
Normal 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);
|
||||||
|
}
|
26
src/carte/CarteEquipementEffet.java
Normal 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
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
35
src/carte/CarteEquipementStat.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
}
|
}
|
||||||
|
36
src/carte/CarteLieuMultiple.java
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
@ -2,28 +2,49 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
super(nom, description);
|
private Type type;
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
|
public enum Type{
|
||||||
|
LUMIERE,
|
||||||
|
TENEBRE,
|
||||||
|
VISION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CartePiochable(Type t, String nom, String description) {
|
||||||
|
super(nom, description);
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
44
src/carte/CarteVision.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
|
||||||
}
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|