aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/fr/umlv/java/wallj/block/RobotBlock.java2
-rw-r--r--src/main/java/fr/umlv/java/wallj/block/Stage.java43
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/Context.java1
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/InputHandler.java1
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/ScreenManager.java1
-rw-r--r--src/main/java/fr/umlv/java/wallj/controller/DisplayController.java12
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/ConfirmOrder.java1
-rw-r--r--src/main/java/fr/umlv/java/wallj/event/GameOverEvent.java1
8 files changed, 1 insertions, 61 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java b/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java
index c011f27..f5e2584 100644
--- a/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java
+++ b/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java
@@ -24,7 +24,6 @@ import java.util.List;
24 */ 24 */
25public class RobotBlock extends Block { 25public class RobotBlock extends Block {
26 // TODO: define robot moving speed 26 // TODO: define robot moving speed
27
28 private Vec2 pos; 27 private Vec2 pos;
29 private List<TileVec2> path = Collections.emptyList(); 28 private List<TileVec2> path = Collections.emptyList();
30 private PathFinder pathFinder; 29 private PathFinder pathFinder;
@@ -68,6 +67,7 @@ public class RobotBlock extends Block {
68 67
69 private void move(Duration timeDelta) { 68 private void move(Duration timeDelta) {
70 // TODO: follow the current path 69 // TODO: follow the current path
70
71 } 71 }
72 72
73 private void paint(GraphicsContext graphicsContext) { 73 private void paint(GraphicsContext graphicsContext) {
diff --git a/src/main/java/fr/umlv/java/wallj/block/Stage.java b/src/main/java/fr/umlv/java/wallj/block/Stage.java
deleted file mode 100644
index 5d2d07c..0000000
--- a/src/main/java/fr/umlv/java/wallj/block/Stage.java
+++ /dev/null
@@ -1,43 +0,0 @@
1package fr.umlv.java.wallj.block;
2
3import fr.umlv.java.wallj.board.Board;
4import fr.umlv.java.wallj.context.Context;
5import fr.umlv.java.wallj.event.Event;
6
7import java.util.Collections;
8import java.util.List;
9import java.util.Objects;
10
11/**
12 * @author
13 */
14public class Stage {
15 //TODO Class Stage
16 private final Board currentBoard;
17
18 public Stage(Board board) {
19 currentBoard = Objects.requireNonNull(board);
20 }
21
22 /**
23 * @return the current board of the game
24 */
25 public Board getCurrentBoard() {
26 return currentBoard;
27 }
28
29 /**
30 * @param context the current context
31 * @return a list of new events to perform
32 */
33 public List<Event> update(Context context) {
34 //TODO
35 return Collections.emptyList();
36 }
37
38 public boolean isCleared() {
39 // TODO
40 return false;
41 }
42
43}
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 a8796e5..bfb46bd 100644
--- a/src/main/java/fr/umlv/java/wallj/context/Context.java
+++ b/src/main/java/fr/umlv/java/wallj/context/Context.java
@@ -12,7 +12,6 @@ import java.util.Objects;
12 * @author Adam NAILI 12 * @author Adam NAILI
13 */ 13 */
14public final class Context { 14public final class Context {
15 //TODO Class Context
16 private final Game game; 15 private final Game game;
17 private final List<Event> events; 16 private final List<Event> events;
18 private final GraphicsContext graphicsContext; 17 private final GraphicsContext 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 2dcd512..b137061 100644
--- a/src/main/java/fr/umlv/java/wallj/context/InputHandler.java
+++ b/src/main/java/fr/umlv/java/wallj/context/InputHandler.java
@@ -22,7 +22,6 @@ import java.util.Objects;
22 * @author Adam NAILI 22 * @author Adam NAILI
23 */ 23 */
24public final class InputHandler { 24public final class InputHandler {
25 //TODO Class InputHandler
26 private final ApplicationContext applicationContext; 25 private final ApplicationContext applicationContext;
27 26
28 /** 27 /**
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 2f28ac9..1e73674 100644
--- a/src/main/java/fr/umlv/java/wallj/context/ScreenManager.java
+++ b/src/main/java/fr/umlv/java/wallj/context/ScreenManager.java
@@ -13,7 +13,6 @@ import java.util.Objects;
13 * @author Adam NAILI 13 * @author Adam NAILI
14 */ 14 */
15public final class ScreenManager { 15public final class ScreenManager {
16 //TODO Class ScreenManager
17 private final ApplicationContext applicationContext; 16 private final ApplicationContext applicationContext;
18 private final Graphics2D graphics2D; 17 private final Graphics2D graphics2D;
19 18
diff --git a/src/main/java/fr/umlv/java/wallj/controller/DisplayController.java b/src/main/java/fr/umlv/java/wallj/controller/DisplayController.java
deleted file mode 100644
index c970e1f..0000000
--- a/src/main/java/fr/umlv/java/wallj/controller/DisplayController.java
+++ /dev/null
@@ -1,12 +0,0 @@
1package fr.umlv.java.wallj.controller;
2
3import fr.umlv.java.wallj.block.Block;
4
5public abstract class DisplayController extends BlockController {
6
7 DisplayController(Block block) {
8 super(block);
9 }
10
11 //TODO
12}
diff --git a/src/main/java/fr/umlv/java/wallj/event/ConfirmOrder.java b/src/main/java/fr/umlv/java/wallj/event/ConfirmOrder.java
index fae6d2f..a3e3525 100644
--- a/src/main/java/fr/umlv/java/wallj/event/ConfirmOrder.java
+++ b/src/main/java/fr/umlv/java/wallj/event/ConfirmOrder.java
@@ -6,5 +6,4 @@ package fr.umlv.java.wallj.event;
6 * @author Adam NAILI 6 * @author Adam NAILI
7 */ 7 */
8public class ConfirmOrder implements InputEvent { 8public class ConfirmOrder implements InputEvent {
9 //TODO Class ConfirmOrder
10} 9}
diff --git a/src/main/java/fr/umlv/java/wallj/event/GameOverEvent.java b/src/main/java/fr/umlv/java/wallj/event/GameOverEvent.java
index eeee927..93ec049 100644
--- a/src/main/java/fr/umlv/java/wallj/event/GameOverEvent.java
+++ b/src/main/java/fr/umlv/java/wallj/event/GameOverEvent.java
@@ -1,5 +1,4 @@
1package fr.umlv.java.wallj.event; 1package fr.umlv.java.wallj.event;
2 2
3public final class GameOverEvent implements GameEvent { 3public final class GameOverEvent implements GameEvent {
4 // TODO
5} 4}