aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/Context.java2
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/Game.java1
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java2
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/InputHandler.java2
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/ScreenManager.java2
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java8
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/ConfirmEvent.java5
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/DropBombEvent.java5
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/Event.java5
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/GameEvent.java5
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/InputEvent.java5
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java8
12 files changed, 50 insertions, 0 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/context/Context.java b/src/main/java/fr/umlv/java/wallj/context/Context.java
index de9c461..053bc8e 100644
--- a/src/main/java/fr/umlv/java/wallj/context/Context.java
+++ b/src/main/java/fr/umlv/java/wallj/context/Context.java
@@ -8,6 +8,8 @@ import java.util.Objects;
8 8
9/** 9/**
10 * A context used to store the current state of the application at one tick 10 * A context used to store the current state of the application at one tick
11 *
12 * @author Adam NAILI
11 */ 13 */
12public final class Context { 14public final class Context {
13 //TODO Class Context 15 //TODO Class Context
diff --git a/src/main/java/fr/umlv/java/wallj/context/Game.java b/src/main/java/fr/umlv/java/wallj/context/Game.java
index 53f61b4..7ddac02 100644
--- a/src/main/java/fr/umlv/java/wallj/context/Game.java
+++ b/src/main/java/fr/umlv/java/wallj/context/Game.java
@@ -10,6 +10,7 @@ import java.util.Objects;
10 10
11/** 11/**
12 * A game. 12 * A game.
13 * @author Adam NAILI
13 */ 14 */
14public final class Game { 15public final class Game {
15 //TODO 16 //TODO
diff --git a/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java b/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java
index 9d5ec0d..1fb07de 100644
--- a/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java
+++ b/src/main/java/fr/umlv/java/wallj/context/GraphicsContext.java
@@ -10,6 +10,8 @@ import java.util.Objects;
10 10
11/** 11/**
12 * A context of the current graphic status of the application. 12 * A context of the current graphic status of the application.
13 *
14 * @author Adam NAILI
13 */ 15 */
14public final class GraphicsContext { 16public final class GraphicsContext {
15 //TODO Class GraphicsContext 17 //TODO Class GraphicsContext
diff --git a/src/main/java/fr/umlv/java/wallj/context/InputHandler.java b/src/main/java/fr/umlv/java/wallj/context/InputHandler.java
index e3546fa..637e94f 100644
--- a/src/main/java/fr/umlv/java/wallj/context/InputHandler.java
+++ b/src/main/java/fr/umlv/java/wallj/context/InputHandler.java
@@ -16,6 +16,8 @@ import java.util.Objects;
16 16
17/** 17/**
18 * Treats the inputs from the keyboard and mouse provided by Zen 5 and creates Events meaningful for the game. 18 * Treats the inputs from the keyboard and mouse provided by Zen 5 and creates Events meaningful for the game.
19 *
20 * @author Adam NAILI
19 */ 21 */
20public final class InputHandler { 22public final class InputHandler {
21 //TODO Class InputHandler 23 //TODO Class InputHandler
diff --git a/src/main/java/fr/umlv/java/wallj/context/ScreenManager.java b/src/main/java/fr/umlv/java/wallj/context/ScreenManager.java
index d687246..2f28ac9 100644
--- a/src/main/java/fr/umlv/java/wallj/context/ScreenManager.java
+++ b/src/main/java/fr/umlv/java/wallj/context/ScreenManager.java
@@ -9,6 +9,8 @@ import java.util.Objects;
9 9
10/** 10/**
11 * Cleans the GraphicsContext 11 * Cleans the GraphicsContext
12 *
13 * @author Adam NAILI
12 */ 14 */
13public final class ScreenManager { 15public final class ScreenManager {
14 //TODO Class ScreenManager 16 //TODO Class ScreenManager
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 eef0329..10581ff 100644
--- a/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java
+++ b/src/main/java/fr/umlv/java/wallj/event/AddBombEvent.java
@@ -4,9 +4,17 @@ import fr.umlv.java.wallj.board.TileVec2;
4 4
5import java.util.Objects; 5import java.util.Objects;
6 6
7/**
8 * Event to put a bomb on the game board
9 *
10 * @author Adam NAILI
11 */
7public final class AddBombEvent implements InputEvent { 12public final class AddBombEvent implements InputEvent {
8 TileVec2 tileVec2; 13 TileVec2 tileVec2;
9 14
15 /**
16 * @param tileVec2 a vector with coordinate relative to the tile
17 */
10 public AddBombEvent(TileVec2 tileVec2) { 18 public AddBombEvent(TileVec2 tileVec2) {
11 this.tileVec2 = Objects.requireNonNull(tileVec2); 19 this.tileVec2 = Objects.requireNonNull(tileVec2);
12 } 20 }
diff --git a/src/main/java/fr/umlv/java/wallj/event/ConfirmEvent.java b/src/main/java/fr/umlv/java/wallj/event/ConfirmEvent.java
index 16b0d8b..6f1e403 100644
--- a/src/main/java/fr/umlv/java/wallj/event/ConfirmEvent.java
+++ b/src/main/java/fr/umlv/java/wallj/event/ConfirmEvent.java
@@ -1,5 +1,10 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3/**
4 * Event coming from a confirmation action from the user
5 *
6 * @author Adam NAILI
7 */
3public class ConfirmEvent implements InputEvent { 8public class ConfirmEvent implements InputEvent {
4 //TODO Class ConfirmEvent 9 //TODO Class ConfirmEvent
5} 10}
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 d0ac956..4386288 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,10 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3/**
4 * Event to signal that a bomb will be placed at the next tick
5 *
6 * @author Adam NAILI
7 */
3public final class DropBombEvent implements InputEvent { 8public final class DropBombEvent implements InputEvent {
4 //TODO Class DropBombEvent 9 //TODO Class DropBombEvent
5} 10}
diff --git a/src/main/java/fr/umlv/java/wallj/event/Event.java b/src/main/java/fr/umlv/java/wallj/event/Event.java
index 034e345..77ce0df 100644
--- a/src/main/java/fr/umlv/java/wallj/event/Event.java
+++ b/src/main/java/fr/umlv/java/wallj/event/Event.java
@@ -1,4 +1,9 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3/**
4 * An application event
5 *
6 * @author Adam NAILI
7 */
3public interface Event { 8public interface Event {
4} 9}
diff --git a/src/main/java/fr/umlv/java/wallj/event/GameEvent.java b/src/main/java/fr/umlv/java/wallj/event/GameEvent.java
index 53381a7..2fe1281 100644
--- a/src/main/java/fr/umlv/java/wallj/event/GameEvent.java
+++ b/src/main/java/fr/umlv/java/wallj/event/GameEvent.java
@@ -1,5 +1,10 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3/**
4 * A game event
5 *
6 * @author Adam NAILI
7 */
3public interface GameEvent extends Event{ 8public interface GameEvent extends Event{
4 9
5} 10}
diff --git a/src/main/java/fr/umlv/java/wallj/event/InputEvent.java b/src/main/java/fr/umlv/java/wallj/event/InputEvent.java
index 3452c66..d18cba0 100644
--- a/src/main/java/fr/umlv/java/wallj/event/InputEvent.java
+++ b/src/main/java/fr/umlv/java/wallj/event/InputEvent.java
@@ -1,5 +1,10 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3/**
4 * An event coming from inputs
5 *
6 * @author Adam NAILI
7 */
3public interface InputEvent extends Event { 8public interface InputEvent extends Event {
4 9
5} 10}
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 7b3e115..a8c9da2 100644
--- a/src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java
+++ b/src/main/java/fr/umlv/java/wallj/event/MoveRobotEvent.java
@@ -4,10 +4,18 @@ import fr.umlv.java.wallj.board.TileVec2;
4 4
5import java.util.Objects; 5import java.util.Objects;
6 6
7/**
8 * Event to precise that the robot is supposed to move on the tile provided
9 *
10 * @author Adam NAILI
11 */
7public class MoveRobotEvent implements InputEvent { 12public class MoveRobotEvent implements InputEvent {
8 //TODO Class MoveRobotEvent 13 //TODO Class MoveRobotEvent
9 TileVec2 tileVec2; 14 TileVec2 tileVec2;
10 15
16 /**
17 * @param tileVec2 the target tile
18 */
11 public MoveRobotEvent(TileVec2 tileVec2) { 19 public MoveRobotEvent(TileVec2 tileVec2) {
12 this.tileVec2 = Objects.requireNonNull(tileVec2); 20 this.tileVec2 = Objects.requireNonNull(tileVec2);
13 } 21 }