diff options
author | pacien | 2018-01-14 18:45:56 +0100 |
---|---|---|
committer | pacien | 2018-01-14 18:45:56 +0100 |
commit | 1d07ffaa79712e22159ce4adb38a1c902915980e (patch) | |
tree | b73e7baa3bca1f43af0a5478391884f5c0196fd9 | |
parent | 7c527484ef4834a14e21277d33f8c490d967087b (diff) | |
download | wallj-1d07ffaa79712e22159ce4adb38a1c902915980e.tar.gz |
Update class diagram
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r-- | src/docs/class.puml | 14 |
1 files changed, 12 insertions, 2 deletions
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 { | |||
102 | Board(width, height) | 102 | Board(width, height) |
103 | BlockType getBlockTypeAt(TileVec2) | 103 | BlockType getBlockTypeAt(TileVec2) |
104 | BlockType setBlockTypeAt(TileVec2, BlockType) | 104 | BlockType setBlockTypeAt(TileVec2, BlockType) |
105 | Stream<Map.Entry<TileVec2, BlockType>> stream() | ||
105 | } | 106 | } |
106 | 107 | ||
107 | class BoardParser { | 108 | class BoardParser { |
@@ -109,7 +110,12 @@ package board { | |||
109 | } | 110 | } |
110 | 111 | ||
111 | class BoardValidator { | 112 | class BoardValidator { |
112 | static bool validate(Board) | 113 | static class Constraint |
114 | Board | ||
115 | |||
116 | BoardValidator(Board) | ||
117 | BoardValidator validate(Predicate<Board>, String error) | ||
118 | Board get() | ||
113 | } | 119 | } |
114 | 120 | ||
115 | class BoardConverter { | 121 | class BoardConverter { |
@@ -124,10 +130,14 @@ package board { | |||
124 | Vec2 | 130 | Vec2 |
125 | TileVec2(col, row) | 131 | TileVec2(col, row) |
126 | Vec2 toPixelPos() | 132 | Vec2 toPixelPos() |
133 | List<TileVec2> neighbors() | ||
127 | } | 134 | } |
128 | 135 | ||
129 | class PathFinder { | 136 | class PathFinder { |
130 | static List<TileVec2> findPath(Board, TileVec2, TileVec2) | 137 | Graph |
138 | |||
139 | PathFinder(Board) | ||
140 | List<TileVec2> findPath(TileVec2 origin, TileVec2 target) | ||
131 | } | 141 | } |
132 | } | 142 | } |
133 | 143 | ||