diff options
author | Adam NAILI | 2018-01-14 15:21:58 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-14 15:21:58 +0100 |
commit | c639cf1a706f46372acef471eecd652153ac76be (patch) | |
tree | 4176035c0d2acda702b59047f9cb3a5d993d9907 /src/docs/class.puml | |
parent | b54e20222747a12621cdc31e6ee78f841726d14c (diff) | |
download | wallj-c639cf1a706f46372acef471eecd652153ac76be.tar.gz |
Updating UML diagram
Diffstat (limited to 'src/docs/class.puml')
-rw-r--r-- | src/docs/class.puml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/docs/class.puml b/src/docs/class.puml index 2fcca80..50e55fb 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml | |||
@@ -17,9 +17,10 @@ package utils { | |||
17 | package viewer { | 17 | package viewer { |
18 | class Viewer { | 18 | class Viewer { |
19 | final Game | 19 | final Game |
20 | Viewer(List<Board>) | ||
20 | void main(String[]) | 21 | void main(String[]) |
21 | void eventLoop(ApplicationContext) | 22 | void eventLoop(ApplicationContext) |
22 | void renderFrame(Graphics2D,ApplicationContext) | 23 | void renderFrame(Graphics2D,ApplicationContext,List<Event>) |
23 | } | 24 | } |
24 | } | 25 | } |
25 | 26 | ||
@@ -59,11 +60,14 @@ package context { | |||
59 | final List<Controller> | 60 | final List<Controller> |
60 | int indexBoard | 61 | int indexBoard |
61 | final List<Board> | 62 | final List<Board> |
63 | bool over | ||
62 | Game(List<Board>) | 64 | Game(List<Board>) |
63 | Stage getStage() | 65 | Stage getStage() |
64 | void nextStage(); | 66 | bool isOver() |
65 | void retryStage(); | 67 | void setOver() |
66 | List<Event> update(Context context); | 68 | void nextStage() |
69 | void retryStage() | ||
70 | List<Event> update(Context context) | ||
67 | } | 71 | } |
68 | } | 72 | } |
69 | 73 | ||
@@ -88,6 +92,8 @@ package event { | |||
88 | } | 92 | } |
89 | 93 | ||
90 | class ConfirmEvent implements InputEvent | 94 | class ConfirmEvent implements InputEvent |
95 | class GameOverEvent implements Event | ||
96 | |||
91 | 97 | ||
92 | class ExplosionEvent implements GameEvent { | 98 | class ExplosionEvent implements GameEvent { |
93 | Block source | 99 | Block source |
@@ -186,7 +192,6 @@ package controller { | |||
186 | class BlockControllerFactory { | 192 | class BlockControllerFactory { |
187 | BlockController build(Block) | 193 | BlockController build(Block) |
188 | } | 194 | } |
189 | |||
190 | class GameController implements Controller | 195 | class GameController implements Controller |
191 | 196 | ||
192 | abstract class PhysicsController extends BlockController | 197 | abstract class PhysicsController extends BlockController |