From 93865b1e5ba80c78c6c7cb794a44baf6818bc89b Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 14 Jan 2018 00:07:02 +0100 Subject: Updating UML diagram --- src/docs/class.puml | 24 +++++++++++++++--------- 1 file 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 { package viewer { class Viewer { - Game - Stage + final Game void main(String[]) void eventLoop(ApplicationContext) void renderFrame(Graphics2D,ApplicationContext) @@ -26,10 +25,13 @@ package viewer { package context { class Context { - Context(Stage,List,GraphicsContext) - final Stage + Context(Game,List,GraphicsContext) + final Game final List final GraphicsContext + Game getGame() + List getEvents() + GraphicsContext getGraphicsContext() } class GraphicsContext { @@ -53,10 +55,15 @@ package context { } class Game { - final GameController - int index + Stage + final List + int indexBoard final List - Game(GameController,List) + Game(List) + Stage getStage() + void nextStage(); + void retryStage(); + List update(Context context); } } @@ -157,8 +164,8 @@ package model { class RobotBlock extends Block class Stage { - StageController List + Board Stage(Board) List getBlocks() List update(Context) @@ -181,7 +188,6 @@ package controller { } class GameController implements Controller - class StageController implements Controller abstract class PhysicsController extends BlockController abstract class DisplayController extends BlockController -- cgit v1.2.3