Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anthony ROZEN
Not Alone
Commits
2e9c7b23
Commit
2e9c7b23
authored
Nov 19, 2020
by
Antoine Guérin
Browse files
composant.adoc modification : diagramme d'interface
parent
576670ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
not-alone-doc/src/doc/asciidoc/_sections/composants.adoc
View file @
2e9c7b23
...
...
@@ -2,6 +2,13 @@
== Création d'une partie
== Diagrammes de séquences
[.lead]
*Création d'ue partie*
exemple du prof :
.Join game
[plantuml]
....
...
...
@@ -42,7 +49,7 @@ notre conception
[.lead]
*Diagramme de séquence de la connexion des joueurs à une partie :*
*Diagramme de séquence
s
de la connexion des joueurs à une partie :*
[plantuml, diag-seq-connect, png]
....
...
...
@@ -50,32 +57,19 @@ skinparam monochrome true
skinparam dpi 400
actor Albert
participant ClientWeb
participant ServeurNotAlone
participant Caroline_ClientWeb
actor Caroline
actor Stéphanie
participant ServeurNotAlone
Albert->ClientWeb: play("Albert")
ClientWeb->ServeurNotAlone: newPlayer("Albert")
Caroline -> Caroline_ClientWeb: play("Caroline")
ServeurNotAlone<-Caroline_ClientWeb: newPlayer("Caroline")
ClientWeb->ServeurNotAlone: createGame("MyPassWord",extension)
ServeurNotAlone->Caroline_ClientWeb: newGame("MyPassWord")
ClientWeb<-
ServeurNotAlone:
"MyPassWord"
Albert->
ServeurNotAlone:
id := createGame(3,false)
ServeurNotAlone
<-Caroline_ClientWeb: join("MyPassWord
")
Albert->
ServeurNotAlone
: play(id,"Albert
")
C
lientWeb
->ServeurNotAlone: play
Game(
)
C
aroline
->ServeurNotAlone: play
(id,"Caroline"
)
Stéphanie->ServeurNotAlone: play(id,"Stephhanie")
....
...
...
@@ -104,6 +98,7 @@ ClientWeb->ServeurNotAlone: reprendreCarte(nbPions*2)
ServeurNotAlone->Albert: choisirCarte()
Albert-->ServeurNotAlone: CarteLieu
Albert->ClientWeb: jouerCarte(CarteLieu)
Caroline->Caroline_ClientWeb:lacherPrise()
...
...
@@ -125,17 +120,11 @@ skinparam dpi 400
actor Creature
participant ClientWeb
participant ServeurNotAlone
Creature->ClientWeb:poserJetonCreature(CarteLieu)
ClientWeb->ServeurNotAlone:poserJetonCreature(CarteLieu)
Creature->ClientWeb:poserJetonCible(CarteLieu)
ClientWeb->ServeurNotAlone:poserJetonCible(CarteLieu)
Creature->ClientWeb:poserJetonArtemia(CarteLieu)
ClientWeb->ServeurNotAlone:poserJetonArtemia(CarteLieu)
Creature->ServeurNotAlone:poserJetonCreature(CarteLieu)
Creature->ServeurNotAlone:poserJetonCible(CarteLieu)
Creature->ServeurNotAlone:poserJetonArtemia(CarteLieu)
....
Diagramme de séquence pour la phase 3 :
...
...
@@ -153,8 +142,12 @@ participant Caroline_ClientWeb
actor Caroline
....
Diagramme de séquence pour la phase 4 :
[plantuml, diag-seq-phase4, png]
...
...
@@ -162,18 +155,56 @@ Diagramme de séquence pour la phase 4 :
skinparam monochrome true
skinparam dpi 400
actor Albert
participant ClientWeb
participant Traqué_ClientWeb
participant ServeurNotAlone
participant Creature_ClientWeb
actor Creature
ClientWeb->ServeurNotAlone:defausseCarte(CarteLieu)
Traqué_
ClientWeb->ServeurNotAlone:defausseCarte(CarteLieu)
Creature_ClientWeb->ServeurNotAlone:recupererJeton()
Creature_ClientWeb->ServeurNotAlone:piocherCarteTraque()
....
faire les interactions entre les interfaces
\ No newline at end of file
=== Diagrammes d'interfaces
Grâce aux diagrammes de séquences précédents, on peut en déduire plusieurs interfaces :
- deux interfaces pour ClientWeb :
[plantuml]
....
interface ClientWebIHM {
resister(nbPions : Integer)
lacherPrise()
}
....
[plantuml]
....
interface ClientWebNotAlone {
createGame(numberOfPlayers : Integer): Integer
join(gameId : Integer): Integer
}
....
- une interface pour le Serveur Not Alone :
[plantuml]
....
interface ServeurNotAlone {
play(id : Interger, name : String)
createGame(nbPlayer : Interger, extension : Boolean) : Integer
retirerPion(nbPion : Integer)
reprendreCarte(nbCarte : Integer)
defausseCarte(card : CarteLieu
avancerPionAssimilation()
poserJetonCreature(card : CarteLieu)
poserJetonCible(card1 : CarteLieu, card2 : CarteLieu)
poserJetonArtemia(card : CarteLieu)
recupererJeton()
piocherCarteTraque()
}
....
not-alone-server/src/main/java/fr/univnantes/alma/common/GameJoinRequest.java
View file @
2e9c7b23
package
fr.univnantes.alma.common
;
public
class
GameJoinRequest
{
public
class
GameJoinRequest
{
}
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