aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-02-04 12:50:31 +0100
committerpacien2018-02-04 12:50:31 +0100
commit3c62d61a3d73b9e4d0d8d64de92e5826db6260ee (patch)
tree1869e60777ce29a0a4a8212b031b5fcd82a62b9b
parent444392c383ee266b0a905ed8fc9d91723ce05ef0 (diff)
downloadwallj-3c62d61a3d73b9e4d0d8d64de92e5826db6260ee.tar.gz
Update class diagram
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r--src/docs/class.puml22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/docs/class.puml b/src/docs/class.puml
index d8c6e81..4f30ff1 100644
--- a/src/docs/class.puml
+++ b/src/docs/class.puml
@@ -32,8 +32,12 @@ package viewer {
32 32
33package context { 33package context {
34 interface Updateable { 34 interface Updateable {
35 List<Event> update(Context) 35 Stream<Event> update(Context)
36 static List<Event> updateAll(List<Updateable>, Context) 36 }
37
38 class Updateables {
39 static Stream<Event> updateAll(Context, List<Updateable>)
40 static Stream<Event> updateAll(Context, Updateable...)
37 } 41 }
38 42
39 class Context { 43 class Context {
@@ -65,14 +69,14 @@ package context {
65 void setOver() 69 void setOver()
66 void nextStage() 70 void nextStage()
67 void retryStage() 71 void retryStage()
68 List<Event> update(Context) 72 Stream<Event> update(Context)
69 } 73 }
70 74
71 class Stage implements Updateable { 75 class Stage implements Updateable {
72 Stage(Board) 76 Stage(Board)
73 Board getBoard() 77 Board getBoard()
74 List<Block> getBlocks() 78 List<Block> getBlocks()
75 List<Event> update(Context) 79 Stream<Event> update(Context)
76 bool isCleared() 80 bool isCleared()
77 } 81 }
78} 82}
@@ -183,23 +187,23 @@ package block {
183 class RobotBlock extends Block { 187 class RobotBlock extends Block {
184 Vec2 getPos() 188 Vec2 getPos()
185 void link(World world) 189 void link(World world)
186 List<Event> update(Context) 190 Stream<Event> update(Context)
187 } 191 }
188 192
189 class WallBlock extends JBoxBlock { 193 class WallBlock extends JBoxBlock {
190 List<Event> update(Context) 194 Stream<Event> update(Context)
191 } 195 }
192 196
193 class TrashBlock extends JBoxBlock { 197 class TrashBlock extends JBoxBlock {
194 List<Event> update(Context) 198 Stream<Event> update(Context)
195 } 199 }
196 200
197 class BombBlock extends JBoxBlock { 201 class BombBlock extends JBoxBlock {
198 List<Event> update(Context) 202 Stream<Event> update(Context)
199 } 203 }
200 204
201 class GarbageBlock extends JBoxBlock { 205 class GarbageBlock extends JBoxBlock {
202 List<Event> update(Context) 206 Stream<Event> update(Context)
203 } 207 }
204} 208}
205 209