Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider bdb4e36e rédigé par Tristan RAME's avatar Tristan RAME
Parcourir les fichiers

Added interfaces.adoc and modified FonctionnementJeu.adoc

parent 5c188fda
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -2,45 +2,38 @@
package "FonctionnementJeu"{
() "IPartie"
"IPartie" - [Partie]
() "IJoueur"
[Joueur] - "IJoueur"
() "IPlateau"
"IPlateau" - [Plateau]
() "IGame"
"IGame" -- [Game]
[Game] --- [GameBoard]
[Game] --- [Dice]
[Game] --- [Cards]
() "IPlayer"
[Player] -- "IPlayer"
[Player] -- [Cards]
() "IGameBoard"
"IGameBoard" - [GameBoard]
() "IPort"
[Plateau] -- "IPort"
() "ITuilesTerrains"
[Plateau] -- "ITuilesTerrains"
[GameBoard] -- "IPort"
() "ILandTiles"
[GameBoard] -- "ILandTiles"
() "IInfrastructure"
[Infrastructure] -- "IInfrastructure"
() "ICarteDeveloppement"
[Cartes] -- "ICarteDeveloppement"
() "ConnectPartieJoueur" as ConnexPJ
[Partie] -- ConnexPJ :"\t"
ConnexPJ )-- [Joueur] :"\t"
() "IDevelopmentCards"
[Cards] -- "IDevelopmentCards"
() "InteragirCartes" as InterJC
[Joueur] -- InterJC :"\t"
InterJC )-- [Cartes] :"\t"
() "Construire" as Construire
[Joueur] -- Construire :"\t"
Construire )-- [Infrastructure] :"\t"
[Plateau] --( Construire :"\t"
() "Build" as Build
[Player] -- Build :"\t"
Build )-- [Infrastructure] :"\t"
[GameBoard] --( Build :"\t"
() "Commercer" as Commercer
Commercer -- [Joueur] :"\t"
Commercer )-- [Joueur] :"\t\t"
Commercer )-- Partie
() "Trade" as Trade
Trade -- [Player] :"\t"
Trade )-- [Player] :"\t\t"
Trade )-- Game
[De] -- "LancerDe"
[Dice] -- "IDice"
}
......
@startuml
interface Game{
start()
createGameBoard()
attributeColors()
determinatePlayersOrder()
beginningPlacement()
distributeResources(Map<Resources,Integer>)
}
interface Gameboard{
determinateResources(Integer) : Map<Color,Map<Resources,Integer>>
}
interface Player{
playTurn(GameBoard)
addToScore(Integer)
addToNbKnights(Integer)
constructRoad()
constructColony()
constructCity()
startExchangeWithPlayer()
startExchangeWithBank()
drawDevelopmentCard()
}
interface Dice{
rollDice() : Integer
}
interface LandTile{
getResource() : Resources
}
interface Infrastructure{
setToCity()
}
interface Port{
isSpecialised() : boolean
getSpecialisation() : Map<Resources,Integer>
}
interface DevelopmentCard{
playCard(Player)
}
interface Build{
updateGameBoard()
}
interface Trade{
selectResources(Map<Resources, Integer>) : Map<Resources, Integer>
sendResourcesToPlayer(Map<Resources, Integer>)
sendResourcesToBank(Map<Resources, Integer>)
}
@enduml
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter