Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Not Alone
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony ROZEN
Not Alone
Commits
2af07387
Commit
2af07387
authored
Dec 27, 2020
by
Anthony ROZEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modification documentations
parent
13925436
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
218 additions
and
21 deletions
+218
-21
not-alone-doc/src/doc/asciidoc/_sections/conception.adoc
not-alone-doc/src/doc/asciidoc/_sections/conception.adoc
+214
-12
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Jeton/Jeton.java
...n/java/fr/univnantes/alma/game/composant/Jeton/Jeton.java
+2
-7
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Joueur/Joueur.java
...java/fr/univnantes/alma/game/composant/Joueur/Joueur.java
+1
-1
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Pion/Pion.java
...ain/java/fr/univnantes/alma/game/composant/Pion/Pion.java
+1
-1
No files found.
not-alone-doc/src/doc/asciidoc/_sections/conception.adoc
View file @
2af07387
...
...
@@ -10,6 +10,211 @@ public class Usine{
}
----
==
Composante
Carte
[
plantuml
,
package
-
carte
,
png
]
....
hide
circle
skinparam
monochrome
true
package
Carte
{
class
Carte
{
private
nom
:
String
private
effet
:
String
public
Carte
(
String
nom
,
String
effet
)
:
Carte
public
getNom
()
:
String
public
getPouvoir
()
:
String
public
equals
(
Object
o
)
:
boolean
}
class
CarteLieu
extends
Carte
{
private
id
:
Integer
public
CarteLieu
(
String
nom
,
String
effet
,
int
id
)
:
CarteLieu
public
getNumero
()
:
Integer
}
class
CarteSurvie
extends
Carte
{
private
phase
:
Integer
public
CarteSurvie
(
String
nom
,
String
effet
,
int
phase
)
:
CarteSurvie
public
getPhase
()
:
Integer
}
class
CarteTraque
extends
Carte
{
private
phase
:
Integer
private
symbole
:
SymboleJeton
public
CarteTraque
(
String
nom
,
String
effet
,
int
phase
,
SymboleJeton
symbole
)
:
CarteTraque
public
getPhase
()
:
Integer
public
getSymbole
()
:
SymboleJeton
}
}
....
==
Composante
Jeton
[
plantuml
,
package
-
jeton
,
png
]
....
hide
circle
skinparam
monochrome
true
package
Jeton
{
class
Jeton
{
private
position
:
ArrayList
<
CarteLieu
>
private
symboleJeton
:
SymboleJeton
public
Jeton
(
SymboleJeton
symboleJeton
)
:
Jeton
public
getSymboleJeton
()
:
SymboleJeton
public
poserJeton
(
CarteLieu
clieu
)
:
void
public
retirerJeton
()
:
void
public
getPosition
()
:
ArrayList
<
CarteLieu
>
public
equals
(
Object
obj
)
:
boolean
}
enum
SymboleJeton
{
CIBLE
,
ARTEMIA
,
CREATURE
}
}
....
==
Composante
Joueur
[
plantuml
,
package
-
joueur
,
png
]
....
hide
circle
skinparam
monochrome
true
package
Joueur
{
class
Joueur
{
private
nom
:
String
public
Joueur
(
String
nom
)
:
Joueur
public
getNom
()
:
String
public
setNom
(
String
nom
)
:
void
}
class
Creature
extends
Joueur
{
private
jetonCreature
:
Jeton
private
jetonCible
:
Jeton
private
jetonArtemia
:
Jeton
private
carteTraque
:
ArrayList
<
CarteTraque
>
public
Creature
(
String
nom
)
:
Creature
public
getJetonCreature
()
:
Jeton
public
setJetonCreature
(
Jeton
jetonCreature
)
:
void
public
getJetonCible
()
:
Jeton
public
setJetonCible
(
Jeton
jetonCible
)
:
void
public
getJetonArtemia
()
:
Jeton
public
setJetonArtemia
(
Jeton
jetonArtemia
)
:
void
public
getCarteTraque
()
:
ArrayList
<
CarteTraque
>
public
setCarteTraque
(
ArrayList
<
CarteTraque
>
carteTraque
)
:
void
public
poserJetonCreature
(
CarteLieu
card1
,
CarteLieu
card2
)
:
void
public
poserJetonCible
(
CarteLieu
card1
,
CarteLieu
card2
)
:
void
public
poserJetonArtemia
(
CarteLieu
card1
,
CarteLieu
card2
)
:
void
public
recupererJeton
()
:
void
}
class
Traque
extends
Joueur
{
private
pionVolonte
:
Integer
private
main
:
ArrayList
<
CarteLieu
>
private
defausse
:
ArrayList
<
CarteLieu
>
private
carteSurvie
:
ArrayList
<
CarteSurvie
>
public
Traque
(
String
nom
)
:
Traque
public
getPionVolonte
()
:
Integer
public
setPionVolonte
(
int
pionVolonte
)
:
void
public
getMain
()
:
ArrayList
<
CarteLieu
>
public
setMain
(
ArrayList
<
CarteLieu
>
carteLieu
)
:
void
public
getDefausse
()
:
ArrayList
<
CarteLieu
>
public
setDefausse
(
ArrayList
<
CarteLieu
>
carteLieu
)
:
void
public
getCarteSurvie
()
:
ArrayList
<
CarteSurvie
>
public
setCarteSurvie
(
ArrayList
<
CarteSurvie
>
carteSurvie
)
:
void
public
reprendreCarte
(
int
nbCarte
)
:
void
public
defausseCarte
(
CarteLieu
card
)
:
void
public
clearDefausse
()
:
void
public
choisirCarte
()
:
CarteLieu
}
}
....
==
Composante
Pion
[
plantuml
,
package
-
pion
,
png
]
....
hide
circle
skinparam
monochrome
true
package
Pion
{
class
Pion
{
protected
position
:
Integer
public
Pion
(
int
position
)
:
Pion
public
getPosition
()
:
Integer
public
setPosition
(
int
position
)
:
void
public
toString
()
:
String
}
class
PionSecours
extends
Pion
{
public
PionSecours
(
int
position
)
:
PionSecours
public
decrementation
()
:
void
public
toString
()
:
String
}
class
PionAssimilation
extends
Pion
{
public
PionAssimilation
(
int
position
)
:
PionAssimilation
public
decrementation
()
:
void
public
toString
()
:
String
}
}
....
==
Composante
Plateau
[
plantuml
,
package
-
plateau
,
png
]
....
hide
circle
skinparam
monochrome
true
package
Plateau
{
class
Plateau
{
private
plateauCarte
:
ArrayList
<
CarteLieu
>
private
reserve
:
ArrayList
<
CarteLieu
>
private
piocheSurvie
:
ArrayList
<
CarteSurvie
>
private
piocheTraque
:
ArrayList
<
CarteTraque
>
private
pionAssimilation
:
PionAssimilation
private
pionSecours
:
PionSecours
private
plateauPion
:
ArrayList
<
Jeton
>
public
Plateau
(
int
numberPlayer
)
:
Plateau
public
getPlateauCarte
()
:
ArrayList
<
CarteLieu
>
public
getReserve
()
:
ArrayList
<
CarteLieu
>
public
getPiocheSurvie
()
:
ArrayList
<
CarteSurvie
>
public
getPiocheTraque
()
:
ArrayList
<
CarteTraque
>
public
getPlateauPion
()
:
ArrayList
<
Jeton
>
public
getPionAssimilation
()
:
PionAssimilation
public
setPionAssimilationPosition
(
int
newPosition
)
:
void
public
getPionSecours
()
:
PionSecours
public
setPionSecoursPosition
(
int
newPosition
)
:
void
public
toString
()
:
String
}
}
....
==
ServeurNotAlone
.
ServeurNotAlone
...
...
@@ -62,8 +267,6 @@ note right of Game : Uncompleted!
===
Op
é
rations
du
ServeurNotAloneController
.
Create
Game
[
source
,
OCL
]
----
...
...
@@ -96,7 +299,7 @@ pre:
post
:
self
.
pionVolonte
=
self
.
pionVolonte
@
pre
-
nbPion
----
.
Reprendre
Carte
.
Reprendre
Carte
[
source
,
OCL
]
----
context
:
ServeurNotAloneController
::
reprendreCarte
(
nbCarte
:
Integer
)
...
...
@@ -106,7 +309,7 @@ post:
self
.
defausse
.
size
->
defausse
@
pre
.
size
-
nbCarte
----
.
Defausse
Carte
.
Defausse
Carte
[
source
,
OCL
]
----
context
:
ServeurNotAloneController
::
defausseCarte
(
card
:
CarteLieu
)
...
...
@@ -116,7 +319,7 @@ post:
defausse
->
exists
(
each
:
CarteLieu
|
each
.
noms
=
card
.
noms
)
----
.
Avancer
Pion
Assimilation
.
Avancer
Pion
Assimilation
[
source
,
OCL
]
----
context
:
ServeurNotAloneController
::
avancerPionAssimilation
()
...
...
@@ -126,7 +329,7 @@ post:
self
.
pionAssimilation
==
self
.
pionAssimilation
@
pre
-
1
----
.
Poser
Jeton
Creature
.
Poser
Jeton
Creature
[
source
,
OCL
]
----
context
:
ServeurNotAloneController
::
poserJetonCreature
(
card
:
CarteLieu
)
...
...
@@ -136,7 +339,7 @@ post:
self.position->exists( each : CarteLieu | each.noms = card.noms)
----
.
Poser Jeton Cible
.Poser Jeton Cible
[source,OCL]
----
ServeurNotAloneController::poserJetonCible(card1 : CarteLieu, card2 : CarteLieu)
...
...
@@ -146,7 +349,7 @@ post:
self
.
position
->
exists
(
each
:
CarteLieu
|
each
=
card1
)
and
self
.
position
->
exists
(
each
:
CarteLieu
|
each
=
card2
)
----
.
Poser
Jeton
Artemia
.
Poser
Jeton
Artemia
[
source
,
OCL
]
----
ServeurNotAloneController
::
poserJetonArtemia
(
card
:
CarteLieu
)
...
...
@@ -156,7 +359,7 @@ post:
self.position->exists( each : CarteLieu | each.noms = card.noms)
----
.
Recuperer Jeton
.Recuperer Jeton
[source,OCL]
----
ServeurNotAloneController::recupererJeton()
...
...
@@ -166,7 +369,7 @@ post:
sefl.carteLieu == null --regarde dans si le jeton atemia n'
est
pas
sur
une
carte
lieu
----
.
Piocher
Carte
Traque
.
Piocher
Carte
Traque
[
source
,
OCL
]
----
ServeurNotAloneController
::
piocherCarteTraque
()
...
...
@@ -174,8 +377,7 @@ post:
self
.
carteTraque
.
size
=
3
----
.
Effet
//
TODO
.
Effet
[
source
,
OCL
]
----
ServeurNotAloneController
::
effet
(
Carte
)
:
String
...
...
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Jeton/Jeton.java
View file @
2af07387
...
...
@@ -5,8 +5,8 @@ import fr.univnantes.alma.game.composant.Carte.CarteLieu;
import
java.util.ArrayList
;
public
class
Jeton
{
ArrayList
<
CarteLieu
>
position
;
SymboleJeton
symboleJeton
;
private
ArrayList
<
CarteLieu
>
position
;
private
SymboleJeton
symboleJeton
;
public
Jeton
(
SymboleJeton
symboleJeton
)
{
this
.
position
=
new
ArrayList
<>();
...
...
@@ -41,9 +41,4 @@ public class Jeton {
Jeton
jeton
=
(
Jeton
)
obj
;
return
position
.
equals
(
jeton
.
getPosition
());
}
}
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Joueur/Joueur.java
View file @
2af07387
package
fr.univnantes.alma.game.composant.Joueur
;
public
abstract
class
Joueur
{
public
class
Joueur
{
private
String
nom
;
public
Joueur
(
String
nom
){
...
...
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Pion/Pion.java
View file @
2af07387
package
fr.univnantes.alma.game.composant.Pion
;
public
abstract
class
Pion
{
public
class
Pion
{
protected
int
position
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment