aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/fr')
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java17
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/DropBombEvent.java2
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java9
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 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3public class AddBombEvent { 3import fr.umlv.java.wallj.board.TileVec2;
4} 4
5import java.util.Objects;
6
7public 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 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3public class DropBombEvent implements Event { 3public 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 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3import fr.umlv.java.wallj.board.TileVec2;
4
5import java.util.Objects;
6
3public class MoveRobotEvent implements Event { 7public 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}