aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-04 16:01:47 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-04 16:01:47 +0200
commit7e7d1971bdffdc19366f92af51e446ff4870f026 (patch)
tree09060a4298778041b2038835cd8c5361286e1332 /docs
parent28a1b4c32208209d6f8ded1bc2e134e9ea36b0e6 (diff)
update
Diffstat (limited to 'docs')
-rw-r--r--docs/class-diag.puml44
1 files changed, 30 insertions, 14 deletions
diff --git a/docs/class-diag.puml b/docs/class-diag.puml
index 2d3e21f..7bd26f5 100644
--- a/docs/class-diag.puml
+++ b/docs/class-diag.puml
@@ -51,6 +51,7 @@ class HTTPFile {
class Canvas {
+ get_tile(x, y)
+ set_tile(x, y)
+ - data : CanvasData
- tiles : Tile[]
}
@@ -64,12 +65,18 @@ class Museum {
- canvas : Canvas
}
+' TODO color : Color?
class Tile {
- + color : Color
- +
+ + data : TileData
+}
+
+struct TileData {
+ + type : string
}
-class TileAppearance
+class TileAppearance {
+ + color : Color
+}
class TileBehavior
@@ -82,6 +89,18 @@ class Artist {
- data : ArtistData
}
+struct ArtistData {
+ + x : float
+ + y : float
+ + vx : float
+ + vy : float
+}
+
+struct CanvasData {
+ + rows : unsigned int
+ + columns : unsigned int
+}
+
class Deserializer
class PeopleDeserializer {
+ set_target(People &)
@@ -91,7 +110,7 @@ class PeopleDeserializer {
class CanvasDeserializer {
+ set_target(Canvas &)
--
- + set_meta_rows(unsigned int)
+ + set_rows(unsigned int)
+ set_meta_cols(unsigned int)
+ add_meta_type(string, Color, unsigned int)
+ add_tile(unsigned int, unsigned int, string)
@@ -103,13 +122,6 @@ struct Color {
blue : unsigned int
}
-struct ArtistData {
- + x : float
- + y : float
- + vx : float
- + vy : float
-}
-
package CPR {
class Response <<irrelevant>>
class Url <<irrelevant>>
@@ -131,9 +143,6 @@ File <|.. HTTPFile
File <. FileReader
File .> FileReader
-Canvas "1" -> "*" Tile
-People "1" -> "*" Artist
-
TileBehavior <|-- GrayTileBehavior
TileBehavior <|-- RedTileBehavior
TileBehavior <|-- BlueTileBehavior
@@ -155,6 +164,13 @@ CanvasDeserializer <... Canvas
Museum --> People
Museum --> Canvas
+Canvas "1" --> "*" Tile
+People "1" --> "*" Artist
+
+Tile --> TileData
+Artist --> ArtistData
+Canvas --> CanvasData
+
CanvasDeserializer .r Color
File <.. Parser