diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/libraries/API_BUT5_5.xml b/.idea/libraries/API_BUT5_5.xml new file mode 100644 index 0000000..83edaf3 --- /dev/null +++ b/.idea/libraries/API_BUT5_5.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..20f033c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..256ede7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java b/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java index cdb9c91..18d0195 100644 --- a/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java +++ b/src/fr/iut_fbleau/raw_api_body/entity/Plateau.java @@ -63,4 +63,44 @@ public interface Plateau { */ void undoPly(Ply ply); + + /** + * Used to verify if the Situation is already in the bookmarks + * + * @throws UnsupportedOperationException if the method is not yet implemented + * + * @return the answer + */ + default boolean isAlreadyDone(){ + throw new UnsupportedOperationException("Feature not yet implemented"); + } + + + /** + * Used to check the value of the current Situation + * + * @throws UnsupportedOperationException if the method is not yet implemented + * + * @throws IllegalStateException if the Situation is not in the bookmarks + * + * @return the value + */ + default int getSituationValue(){ + throw new UnsupportedOperationException("Feature not yet implemented"); + } + + + + /** + * Used to add a Situation to the bookmarks + * + * @throws UnsupportedOperationException if the method is not yet implemented + * + * @throws IllegalStateException if the Situation is already in the bookmarks + */ + default void addSituation(){ + throw new UnsupportedOperationException("Feature not yet implemented"); + } + + } diff --git a/src/fr/iut_fbleau/raw_api_body/entity/Situation.java b/src/fr/iut_fbleau/raw_api_body/entity/Situation.java new file mode 100644 index 0000000..1e0f4e9 --- /dev/null +++ b/src/fr/iut_fbleau/raw_api_body/entity/Situation.java @@ -0,0 +1,4 @@ +package fr.iut_fbleau.raw_api_body.entity; + +public abstract class Situation { +}