diff options
Diffstat (limited to 'src/main/java/fr/umlv')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/context/Context.java | 12 |
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 | */ |
14 | public final class Context { | 14 | public 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 | /** |