aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/class-diag.puml38
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