diff options
-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 | } |