aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/class-diag.puml39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/class-diag.puml b/docs/class-diag.puml
index 7db3bd3..17e2b59 100644
--- a/docs/class-diag.puml
+++ b/docs/class-diag.puml
@@ -4,5 +4,44 @@
skinparam linetype ortho
skinparam classAttributeIconSize 0
+class FileReader {
+ + open(path)
+ + read()
+ + close()
+}
+
+class LocalFile
+class HTTPFile
+
+class Canvas {
+ + get_tile(x, y)
+ + set_tile(x, y)
+}
+
+class Tile
+
+class TileFactory
+
+class TileBehavior
+
+class GrayTileBehavior
+class RedTileBehavior
+class BlueTileBehavior
+class YellowTileBehavior
+
+class Artist
+
+FileReader <|-- LocalFile
+FileReader <|-- HTTPFile
+Canvas "1" -> "*" Tile
+TileBehavior <|-- GrayTileBehavior
+TileBehavior <|-- RedTileBehavior
+TileBehavior <|-- BlueTileBehavior
+TileBehavior <|-- YellowTileBehavior
+
+TileFactory --> Tile : create
+
+
@enduml
+