aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr/umlv
diff options
context:
space:
mode:
authorAdam NAILI2018-01-14 00:10:56 +0100
committerAdam NAILI2018-01-14 00:10:56 +0100
commitb25ae7d212fb5c802421a518866e43f8194b2868 (patch)
treeaa6eee3e8a060066851fd4d9f5ab7f5c32846b15 /src/main/java/fr/umlv
parent9decc968bee4b455d96472b51bf8490275a12df4 (diff)
downloadwallj-b25ae7d212fb5c802421a518866e43f8194b2868.tar.gz
Modifying Context: it contains Game and no longer Stage
Diffstat (limited to 'src/main/java/fr/umlv')
-rw-r--r--src/main/java/fr/umlv/java/wallj/context/Context.java12
1 files changed, 6 insertions, 6 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 053bc8e..01b1f3f 100644
--- a/src/main/java/fr/umlv/java/wallj/context/Context.java
+++ b/src/main/java/fr/umlv/java/wallj/context/Context.java
@@ -13,17 +13,17 @@ import java.util.Objects;
13 */ 13 */
14public final class Context { 14public final class Context {
15 //TODO Class Context 15 //TODO Class Context
16 private final Stage stage; 16 private final Game game;
17 private final List<Event> events; 17 private final List<Event> events;
18 private final GraphicsContext graphicsContext; 18 private final GraphicsContext graphicsContext;
19 19
20 /** 20 /**
21 * @param stage the current stage 21 * @param game the current game
22 * @param events the list of events of the tick 22 * @param events the list of events of the tick
23 * @param graphicsContext the current graphics context 23 * @param graphicsContext the current graphics context
24 */ 24 */
25 public Context(Stage stage, List<Event> events, GraphicsContext graphicsContext) { 25 public Context(Game game, List<Event> events, GraphicsContext graphicsContext) {
26 this.stage = Objects.requireNonNull(stage); 26 this.game = Objects.requireNonNull(game);
27 this.events = Objects.requireNonNull(events); 27 this.events = Objects.requireNonNull(events);
28 this.graphicsContext = Objects.requireNonNull(graphicsContext); 28 this.graphicsContext = Objects.requireNonNull(graphicsContext);
29 } 29 }
@@ -31,8 +31,8 @@ public final class Context {
31 /** 31 /**
32 * @return the stage 32 * @return the stage
33 */ 33 */
34 public Stage getStage() { 34 public Game getGame() {
35 return stage; 35 return game;
36 } 36 }
37 37
38 /** 38 /**