Nantes Université
Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
7
7 Wonders
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Service d'assistance
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Leo PORTEJOIE
7 Wonders
Validations
7faead61
Valider
7faead61
rédigé
il y a 3 ans
par
Malo Grall
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Removed new lines for Server
parent
89e1b275
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline
#55906
réussi
il y a 3 ans
Étape: deploy
Modifications
2
Pipelines
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
docs/modules/composants/pages/composants.adoc
+6
-6
6 ajouts, 6 suppressions
docs/modules/composants/pages/composants.adoc
docs/modules/composants/partials/interfaces-diagrams/server-interfaces.puml
+16
-19
16 ajouts, 19 suppressions
...sants/partials/interfaces-diagrams/server-interfaces.puml
avec
22 ajouts
et
25 suppressions
docs/modules/composants/pages/composants.adoc
+
6
−
6
Voir le fichier @
7faead61
= Spécification des composants
== Relations et interfaces des composants
=== Relation et interfaces de tous les composants
[plantuml, global-interfaces, svg]
....
include::../partials/interfaces-diagrams/global-interfaces.puml[]
....
=== Relation et interfaces côté Serveur
[plantuml, server-interfaces, svg]
....
...
...
@@ -19,12 +25,6 @@ include::../partials/interfaces-diagrams/client-interfaces.puml[]
include::../partials/interfaces-diagrams/cards-interfaces.puml[]
....
=== Relation et interfaces de tous les composants
[plantuml, global-interfaces, svg]
....
include::../partials/interfaces-diagrams/global-interfaces.puml[]
....
== Responsabilités des composants
=== Client
Intéractions avec l'application web
...
...
This diff is collapsed.
Cliquez pour l'agrandir.
docs/modules/composants/partials/interfaces-diagrams/server-interfaces.puml
+
16
−
19
Voir le fichier @
7faead61
...
...
@@ -54,51 +54,48 @@ interface GamePublic {
interface Game extends GamePublic {
- players: List<Player>
'Methods
'Create a Player instance and add it to players
+ addPlayer(String userId, String userName)
'
' Initialize and start the game (UseCase preparation)
+ startGame(): void
'
' End the game
+ endGame(): void
'
' Get the current game with private informations hiden
+ getGamePublic(): GamePublic
'
' Set card as currentCard and remove card from handCards
+ playCard(String playerId, Card card, Action action): void
'
'Get the player with playerId
+ getPlayer(String playerId): Player
' Buy raw material from a player (neighbor)
- buyRessourceFrom(String buyerId, String sellerId, Resource resource): void
'Start the age to set the cards pool
'
'
Start the age to set the cards pool
- startAge(Age age): void
'
' Fill every Player::handCards with default cards from currentAgeCards
- distributeCards(): void
'
' Get the 2 neighbors of the player
- getNeighbors(Player p) : Pair<Player, Player>
'
' Give Player::handCards to player neighbor
- nextTurn(): void
'
' Give Player::handCards to player neighbor
- giveNeighbor(List<Card>): void
'
' At the end of Age, compare the army of the 2 neighbors of the player and attribute victory points accordingly
- fight(Player p): void
'
' Get the leaderboard of the game
- getLeaderboard(): Map<Player, int>
...
...
@@ -107,14 +104,14 @@ interface Game extends GamePublic {
interface PlayerPublic {
- userId: String
- userName: String
'
- wonder: Wonder
'
- victoryPoints: int
- defeatPoints: int
- conlictPoints: int
- money: int
'
' Possessed resources
- resources: Map<Resource, int>
' Built cards
...
...
This diff is collapsed.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter