diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-03 12:43:04 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-03 12:43:04 +0200 |
commit | 28a1b4c32208209d6f8ded1bc2e134e9ea36b0e6 (patch) | |
tree | 0333d46e22e085138cd7bf28c36d472bba3d1a85 /docs | |
parent | febf549c90959b1cbe18fd67c3348930fc7bb8fe (diff) |
update class diagram
Diffstat (limited to 'docs')
-rw-r--r-- | docs/class-diag.puml | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/docs/class-diag.puml b/docs/class-diag.puml index a475575..2d3e21f 100644 --- a/docs/class-diag.puml +++ b/docs/class-diag.puml @@ -54,17 +54,20 @@ class Canvas { - tiles : Tile[] } -class Artists { +class People { - artists : Artist[] } -class World { +class Museum { + load : - - artists : Artists + - artists : People - canvas : Canvas } -class Tile +class Tile { + + color : Color + + +} class TileAppearance @@ -75,11 +78,13 @@ class RedTileBehavior class BlueTileBehavior class YellowTileBehavior -class Artist +class Artist { + - data : ArtistData +} class Deserializer -class ArtistsDeserializer { - + set_target(Artists &) +class PeopleDeserializer { + + set_target(People &) -- + add_artist(float, float, float, float) } @@ -98,6 +103,13 @@ struct Color { blue : unsigned int } +struct ArtistData { + + x : float + + y : float + + vx : float + + vy : float +} + package CPR { class Response <<irrelevant>> class Url <<irrelevant>> @@ -120,7 +132,7 @@ File <. FileReader File .> FileReader Canvas "1" -> "*" Tile -Artists "1" -> "*" Artist +People "1" -> "*" Artist TileBehavior <|-- GrayTileBehavior TileBehavior <|-- RedTileBehavior @@ -131,24 +143,24 @@ Parser <|-- CSVParser Parser <|-- TXTParser Parser <|-- XMLParser -Deserializer <|-- ArtistsDeserializer +Deserializer <|-- PeopleDeserializer Deserializer <|-- CanvasDeserializer HTTPFile --> CPR.Response CPR.Response - CPR.Url -ArtistsDeserializer <... Artists +PeopleDeserializer <... People CanvasDeserializer <... Canvas -World <-- Artists -World <-- Canvas +Museum --> People +Museum --> Canvas CanvasDeserializer .r Color File <.. Parser ' LAYOUT -ArtistsDeserializer -r[hidden] CanvasDeserializer +PeopleDeserializer -r[hidden] CanvasDeserializer @enduml |