From 1d07ffaa79712e22159ce4adb38a1c902915980e Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 14 Jan 2018 18:45:56 +0100 Subject: Update class diagram Signed-off-by: pacien --- src/docs/class.puml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/docs/class.puml b/src/docs/class.puml index 6a527ae..dda61b7 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml @@ -102,6 +102,7 @@ package board { Board(width, height) BlockType getBlockTypeAt(TileVec2) BlockType setBlockTypeAt(TileVec2, BlockType) + Stream> stream() } class BoardParser { @@ -109,7 +110,12 @@ package board { } class BoardValidator { - static bool validate(Board) + static class Constraint + Board + + BoardValidator(Board) + BoardValidator validate(Predicate, String error) + Board get() } class BoardConverter { @@ -124,10 +130,14 @@ package board { Vec2 TileVec2(col, row) Vec2 toPixelPos() + List neighbors() } class PathFinder { - static List findPath(Board, TileVec2, TileVec2) + Graph + + PathFinder(Board) + List findPath(TileVec2 origin, TileVec2 target) } } -- cgit v1.2.3