diff --git a/Diagramme-de-paquetages.md b/Diagramme-de-paquetages.md index 1bff600..153e97c 100644 --- a/Diagramme-de-paquetages.md +++ b/Diagramme-de-paquetages.md @@ -1,52 +1,60 @@ ```plantuml @startuml -package "Boards" { - class Board - class Cell +package "Qwirkle" { + package "Boards" { + class Board + class Cell + } + + package "Games" { + class Game + interface IPlayer + interface IRules + } + + package "Players" { + class Player + struct Score + } + + package "Tiles" { + class Tile + class TileBag + enum Color + enum Shape + } + + package "Events" { + class AddPlayerNotifiedEventArgs + class EndOfGameNotifiedEventArgs + class NextPlayerNotifiedEventArgs + class PlaceTileNotifiedEventArgs + } + + package "Program" { + } + + Cell <--* Board + + IPlayer ..|> Game + IRules ..|> Game + + Score --> Player + + Tile <--* TileBag + Tile --> Color + Tile --> Shape + + Program ..> Boards : <> + Program ..> Games : <> + Program ..> Players : <> + Program ..> Tiles : <> + Program ..> Events : <> + + Games ..> Boards : <> + Games ..> Players : <> + Games ..> Tiles : <> + Boards ..> Tiles : <> + Players ..> Tiles : <> } - -package "Games" { - class Game - interface IPlayer - interface IRules -} - -package "Players" { - class Player - struct Score -} - -package "Tiles" { - class Tile - class TileBag - enum Color - enum Shape -} - -package "Events" { - class AddPlayerNotifiedEventArgs - class EndOfGameNotifiedEventArgs - class NextPlayerNotifiedEventArgs - class PlaceTileNotifiedEventArgs -} - -package "Program" { -} - -Cell <--* Board - -IPlayer ..|> Game -IRules ..|> Game - -Score --> Player - -Tile <--* TileBag -Tile --> Color -Tile --> Shape - -Program ..> Boards : <> -Program ..> Games : <> -Program ..> Players : <> -Program ..> Tiles : <> -Program ..> Events : <> @enduml \ No newline at end of file