aboutsummaryrefslogtreecommitdiff
path: root/src/docs/class.puml
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/class.puml')
-rw-r--r--src/docs/class.puml24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/docs/class.puml b/src/docs/class.puml
index 68aaf5e..2fcca80 100644
--- a/src/docs/class.puml
+++ b/src/docs/class.puml
@@ -16,8 +16,7 @@ package utils {
16 16
17package viewer { 17package viewer {
18 class Viewer { 18 class Viewer {
19 Game 19 final Game
20 Stage
21 void main(String[]) 20 void main(String[])
22 void eventLoop(ApplicationContext) 21 void eventLoop(ApplicationContext)
23 void renderFrame(Graphics2D,ApplicationContext) 22 void renderFrame(Graphics2D,ApplicationContext)
@@ -26,10 +25,13 @@ package viewer {
26 25
27package context { 26package context {
28 class Context { 27 class Context {
29 Context(Stage,List<Event>,GraphicsContext) 28 Context(Game,List<Event>,GraphicsContext)
30 final Stage 29 final Game
31 final List<Event> 30 final List<Event>
32 final GraphicsContext 31 final GraphicsContext
32 Game getGame()
33 List<Event> getEvents()
34 GraphicsContext getGraphicsContext()
33 } 35 }
34 36
35 class GraphicsContext { 37 class GraphicsContext {
@@ -53,10 +55,15 @@ package context {
53 } 55 }
54 56
55 class Game { 57 class Game {
56 final GameController 58 Stage
57 int index 59 final List<Controller>
60 int indexBoard
58 final List<Board> 61 final List<Board>
59 Game(GameController,List<Board>) 62 Game(List<Board>)
63 Stage getStage()
64 void nextStage();
65 void retryStage();
66 List<Event> update(Context context);
60 } 67 }
61} 68}
62 69
@@ -157,8 +164,8 @@ package model {
157 class RobotBlock extends Block 164 class RobotBlock extends Block
158 165
159 class Stage { 166 class Stage {
160 StageController
161 List<Block> 167 List<Block>
168 Board
162 Stage(Board) 169 Stage(Board)
163 List<Block> getBlocks() 170 List<Block> getBlocks()
164 List<Event> update(Context) 171 List<Event> update(Context)
@@ -181,7 +188,6 @@ package controller {
181 } 188 }
182 189
183 class GameController implements Controller 190 class GameController implements Controller
184 class StageController implements Controller
185 191
186 abstract class PhysicsController extends BlockController 192 abstract class PhysicsController extends BlockController
187 abstract class DisplayController extends BlockController 193 abstract class DisplayController extends BlockController