diff --git a/catan-doc/modules/composants/pages/FonctionnementJeu.adoc b/catan-doc/modules/composants/pages/FonctionnementJeu.adoc index 3a0d1206912bb3886f1aa0c318608ff578a925a8..e73c007636f3434870be01138a15b288c0063749 100644 --- a/catan-doc/modules/composants/pages/FonctionnementJeu.adoc +++ b/catan-doc/modules/composants/pages/FonctionnementJeu.adoc @@ -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" } diff --git a/catan-doc/modules/composants/pages/interfaces.adoc b/catan-doc/modules/composants/pages/interfaces.adoc new file mode 100644 index 0000000000000000000000000000000000000000..380e0e0cdd22be993fc198290ff6ea63cca32169 --- /dev/null +++ b/catan-doc/modules/composants/pages/interfaces.adoc @@ -0,0 +1,48 @@ +@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