From b25ae7d212fb5c802421a518866e43f8194b2868 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 14 Jan 2018 00:10:56 +0100 Subject: Modifying Context: it contains Game and no longer Stage --- src/main/java/fr/umlv/java/wallj/context/Context.java | 12 ++++++------ 1 file 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; */ public final class Context { //TODO Class Context - private final Stage stage; + private final Game game; private final List events; private final GraphicsContext graphicsContext; /** - * @param stage the current stage + * @param game the current game * @param events the list of events of the tick * @param graphicsContext the current graphics context */ - public Context(Stage stage, List events, GraphicsContext graphicsContext) { - this.stage = Objects.requireNonNull(stage); + public Context(Game game, List events, GraphicsContext graphicsContext) { + this.game = Objects.requireNonNull(game); this.events = Objects.requireNonNull(events); this.graphicsContext = Objects.requireNonNull(graphicsContext); } @@ -31,8 +31,8 @@ public final class Context { /** * @return the stage */ - public Stage getStage() { - return stage; + public Game getGame() { + return game; } /** -- cgit v1.2.3