aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-17 13:48:26 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-17 13:48:26 +0200
commit0f2f5fb61c48559be285a2747f05103504ed0fb7 (patch)
treeafc51c44328467c9a930909b97defe3755581625
parentda9877a1668ace3370ea18ac4527ee5479b0fb40 (diff)
add some notes
-rw-r--r--docs/class-diag.puml9
-rw-r--r--main.cpp3
-rw-r--r--readme.md6
3 files changed, 11 insertions, 7 deletions
diff --git a/docs/class-diag.puml b/docs/class-diag.puml
index e0f10c1..8495b16 100644
--- a/docs/class-diag.puml
+++ b/docs/class-diag.puml
@@ -141,9 +141,6 @@ rectangle Group_Model as "Model" <<group>> {
- artists : forward_list<Artist *>
- artist_count : size_t
- museum : Museum &
- --
- - deleted_artists : forward_list<Artist *>
- - cleanup()
}
class Tile {
+ data : TileData
@@ -310,9 +307,9 @@ rectangle Group_Visualization as "Visualization" <<group>> {
}
rectangle Group_Commands as "Commands" <<group>> {
class Command {
- # museum : Museum&
- # view : View&
- # controller : ViewController&
+ # museum : Museum * <<+get&>> <<-set>>
+ # view : View * <<+get&>> <<-set>>
+ # controller : ViewController * <<+get&>> <<-set>>
--
+ Command(command : const Command *)
+ Command(museum, view, controller)
diff --git a/main.cpp b/main.cpp
index 94cccfe..9cc8ee8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -20,7 +20,8 @@ int main(int argc, char** argv) {
// Museum and View both create their own worker threads, so the main thread
// should remain to keep the view active.
- while (view.open);
+ while (view.open)
+ ;
return EXIT_SUCCESS;
}
diff --git a/readme.md b/readme.md
index 282a42e..96500ec 100644
--- a/readme.md
+++ b/readme.md
@@ -10,6 +10,12 @@ ALGA:
- artist-path collision behavior (toggleable)
- pathfinding start/end selection w/ mouse buttons (left for start, right for end)
- show {shortest,fastest,no} path toggle
+- vast meer
TODO:
+- command pattern is fout
+- low-binding factories naar high-binding factories
+- prototype met geen factory maar map ofzo fixen
+- txt file parser
+