aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/class-diag.puml26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/class-diag.puml b/docs/class-diag.puml
index 17e2b59..6de5851 100644
--- a/docs/class-diag.puml
+++ b/docs/class-diag.puml
@@ -3,11 +3,17 @@
!theme plain
skinparam linetype ortho
skinparam classAttributeIconSize 0
+' skinparam packageStyle rectangle
+
+class main as "main()"
+hide main circle
+hide main members
class FileReader {
+ open(path)
+ read()
+ close()
+ - protocol
}
class LocalFile
@@ -31,6 +37,20 @@ class YellowTileBehavior
class Artist
+class ArtistDeserializer
+class CanvasDeserializer
+
+package CPR { }
+package SDL2 { }
+
+interface Parser {
+ + parse(f: FileReader)
+}
+
+class CSVParser
+class XMLParser
+class TXTParser
+
FileReader <|-- LocalFile
FileReader <|-- HTTPFile
Canvas "1" -> "*" Tile
@@ -39,6 +59,12 @@ TileBehavior <|-- RedTileBehavior
TileBehavior <|-- BlueTileBehavior
TileBehavior <|-- YellowTileBehavior
+Parser <|-- CSVParser
+Parser <|-- TXTParser
+Parser <|-- XMLParser
+
+HTTPFile ..> CPR
+
TileFactory --> Tile : create