diff options
author | Adam NAILI | 2018-01-08 19:22:43 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-08 19:22:43 +0100 |
commit | 0506ff8551813ee02ae0f679f28df5e0ebbbb101 (patch) | |
tree | 91329a1f8921ce15e3c380f2a50efbcb2a6b4ea9 /src/main/java/fr | |
parent | 7aadcb18bcf78e6d898dcab23ab25afe0fd449d8 (diff) | |
download | wallj-0506ff8551813ee02ae0f679f28df5e0ebbbb101.tar.gz |
Implementing some event classes (AddBombEvent, DropBombEvent, MoveRobotEvent)
Diffstat (limited to 'src/main/java/fr')
3 files changed, 23 insertions, 5 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java b/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java index 6f82684..368171e 100644 --- a/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java +++ b/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java | |||
@@ -1,4 +1,13 @@ | |||
1 | package fr.umlv.java.wallj.event; | 1 | package fr.umlv.java.wallj.event; |
2 | 2 | ||
3 | public class AddBombEvent { | 3 | import fr.umlv.java.wallj.board.TileVec2; |
4 | } | 4 | |
5 | import java.util.Objects; | ||
6 | |||
7 | public final class AddBombEvent implements Event { | ||
8 | TileVec2 tileVec2; | ||
9 | |||
10 | public AddBombEvent(TileVec2 tileVec2) { | ||
11 | this.tileVec2 = Objects.requireNonNull(tileVec2); | ||
12 | } | ||
13 | } | ||
diff --git a/src/main/java/fr/umlv/java/wallj/event/DropBombEvent.java b/src/main/java/fr/umlv/java/wallj/event/DropBombEvent.java index 4974e39..3089e7a 100644 --- a/src/main/java/fr/umlv/java/wallj/event/DropBombEvent.java +++ b/src/main/java/fr/umlv/java/wallj/event/DropBombEvent.java | |||
@@ -1,5 +1,5 @@ | |||
1 | package fr.umlv.java.wallj.event; | 1 | package fr.umlv.java.wallj.event; |
2 | 2 | ||
3 | public class DropBombEvent implements Event { | 3 | public final class DropBombEvent implements Event { |
4 | //TODO Class DropBombEvent | 4 | //TODO Class DropBombEvent |
5 | } | 5 | } |
diff --git a/src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java b/src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java index fecef98..849c0e6 100644 --- a/src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java +++ b/src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java | |||
@@ -1,5 +1,14 @@ | |||
1 | package fr.umlv.java.wallj.event; | 1 | package fr.umlv.java.wallj.event; |
2 | 2 | ||
3 | import fr.umlv.java.wallj.board.TileVec2; | ||
4 | |||
5 | import java.util.Objects; | ||
6 | |||
3 | public class MoveRobotEvent implements Event { | 7 | public class MoveRobotEvent implements Event { |
4 | //TODO Class MoveRobotEvent | 8 | //TODO Class MoveRobotEvent |
9 | TileVec2 tileVec2; | ||
10 | |||
11 | public MoveRobotEvent(TileVec2 tileVec2) { | ||
12 | this.tileVec2 = Objects.requireNonNull(tileVec2); | ||
13 | } | ||
5 | } | 14 | } |