aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/class-diag.puml22
1 files changed, 21 insertions, 1 deletions
diff --git a/docs/class-diag.puml b/docs/class-diag.puml
index 062cf2a..8058e0a 100644
--- a/docs/class-diag.puml
+++ b/docs/class-diag.puml
@@ -96,19 +96,39 @@ rectangle Group_Algorithms as "Algorithms" <<group>> {
class PathfindingContext {
+ PathfindingContext(Museum &)
}
+ together {
class CollisionContext {
+ CollisionContext(Museum &)
}
+ class CollisionChecker {
+ + CollisionChecker(Museum &)
+ + check(Artist & a, Artist & b)
+ }
+ class QuadTreeCollisionChecker {
+ + QuadTree(Museum &)
+ + QuadTree(parent : QuadTree *, boundary : Rectangle &)
+ }
+ class NaiveCollisionChecker {
+ }
+
+ CollisionChecker <|-- QuadTreeCollisionChecker
+ CollisionChecker <|-- NaiveCollisionChecker
+ CollisionContext -> CollisionChecker
+ }
}
rectangle Group_Model as "Model" <<group>> {
class Museum {
+ people : People
+ canvas : Canvas
+ + collision : CollisionContext
+ + pathfinding : PathfindingContext
--
+ + paused : bool
+ update()
+ + skip_forward()
+ + skip_backward()
--
- - paused : bool <<+get>> <<+set>>
- jump : unsigned long
--
- working : bool