diff options
author | Adam NAILI | 2018-01-08 19:18:44 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-08 19:18:44 +0100 |
commit | 65f246483e427f1b6f34e1c6fb46892bff4496e0 (patch) | |
tree | 9a2b1439eb2b0db47ed6d8dbf601388124c8d09b /src | |
parent | 7733b7dffe5a70c578713c34bdbabafee060d80a (diff) | |
download | wallj-65f246483e427f1b6f34e1c6fb46892bff4496e0.tar.gz |
Updating UML diagram
Diffstat (limited to 'src')
-rw-r--r-- | src/docs/class.puml | 13 | ||||
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java | 4 | ||||
-rw-r--r-- | src/test/java/fr/umlv/java/wallj/viewer/ViewerTest.java (renamed from src/test/java/fr/umlv/java/wallj/viewer/TestViewer.java) | 10 |
3 files changed, 19 insertions, 8 deletions
diff --git a/src/docs/class.puml b/src/docs/class.puml index ab5cd30..08e7fe3 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml | |||
@@ -34,7 +34,7 @@ package context { | |||
34 | } | 34 | } |
35 | 35 | ||
36 | class InputHandler { | 36 | class InputHandler { |
37 | private ApplicationContext | 37 | private final ApplicationContext |
38 | InputHandler(ApplicationContext) | 38 | InputHandler(ApplicationContext) |
39 | List<Event> getEvents() | 39 | List<Event> getEvents() |
40 | } | 40 | } |
@@ -47,6 +47,7 @@ package context { | |||
47 | 47 | ||
48 | class Game { | 48 | class Game { |
49 | final GameController | 49 | final GameController |
50 | int index | ||
50 | final List<Board> | 51 | final List<Board> |
51 | Game(GameController,List<Board>) | 52 | Game(GameController,List<Board>) |
52 | } | 53 | } |
@@ -58,12 +59,18 @@ package event { | |||
58 | interface InputEvent implements Event | 59 | interface InputEvent implements Event |
59 | interface GameEvent implements Event | 60 | interface GameEvent implements Event |
60 | 61 | ||
61 | class DropBombEvent implements InputEvent { | 62 | class DropBombEvent implements InputEvent |
62 | DropBombEvent(TileVec2) | 63 | |
64 | class AddBombEvent implements InputEvent { | ||
65 | final TileVec2 | ||
66 | AddBombEvent(TileVec2) | ||
67 | TileVec2 getTile() | ||
63 | } | 68 | } |
64 | 69 | ||
65 | class MoveRobotEvent implements InputEvent { | 70 | class MoveRobotEvent implements InputEvent { |
71 | final TileVec2 | ||
66 | MoveRobotEvent(TileVec2) | 72 | MoveRobotEvent(TileVec2) |
73 | TileVec2 getTile() | ||
67 | } | 74 | } |
68 | 75 | ||
69 | class ConfirmEvent implements InputEvent | 76 | class ConfirmEvent implements InputEvent |
diff --git a/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java b/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java new file mode 100644 index 0000000..6f82684 --- /dev/null +++ b/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java | |||
@@ -0,0 +1,4 @@ | |||
1 | package fr.umlv.java.wallj.event; | ||
2 | |||
3 | public class AddBombEvent { | ||
4 | } | ||
diff --git a/src/test/java/fr/umlv/java/wallj/viewer/TestViewer.java b/src/test/java/fr/umlv/java/wallj/viewer/ViewerTest.java index 8ba1240..21cd0ad 100644 --- a/src/test/java/fr/umlv/java/wallj/viewer/TestViewer.java +++ b/src/test/java/fr/umlv/java/wallj/viewer/ViewerTest.java | |||
@@ -1,5 +1,5 @@ | |||
1 | package fr.umlv.java.wallj.viewer; | 1 | package fr.umlv.java.wallj.viewer; |
2 | 2 | ||
3 | public class TestViewer { | 3 | public class TestViewer { |
4 | 4 | ||
5 | } | 5 | } |