diff options
author | Adam NAILI | 2018-01-14 00:09:54 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-14 00:09:54 +0100 |
commit | 9decc968bee4b455d96472b51bf8490275a12df4 (patch) | |
tree | 52433c403ea45f513babc17ca84e0fb9f2204966 | |
parent | 2c6e0ce2c71f2a395b110ebbffe7b5198bffc3d1 (diff) | |
download | wallj-9decc968bee4b455d96472b51bf8490275a12df4.tar.gz |
Implementing very basics stuffs in Stage to unlock situation in other classes
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/model/Stage.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/model/Stage.java b/src/main/java/fr/umlv/java/wallj/model/Stage.java index a7fce67..b66a7ca 100644 --- a/src/main/java/fr/umlv/java/wallj/model/Stage.java +++ b/src/main/java/fr/umlv/java/wallj/model/Stage.java | |||
@@ -1,5 +1,36 @@ | |||
1 | package fr.umlv.java.wallj.model; | 1 | package fr.umlv.java.wallj.model; |
2 | 2 | ||
3 | import fr.umlv.java.wallj.board.Board; | ||
4 | import fr.umlv.java.wallj.context.Context; | ||
5 | import fr.umlv.java.wallj.event.Event; | ||
6 | |||
7 | import java.util.List; | ||
8 | import java.util.Objects; | ||
9 | |||
10 | /** | ||
11 | * @author | ||
12 | */ | ||
3 | public class Stage { | 13 | public class Stage { |
4 | //TODO Class Stage | 14 | //TODO Class Stage |
15 | private final Board currentBoard; | ||
16 | |||
17 | public Stage(Board board) { | ||
18 | currentBoard = Objects.requireNonNull(board); | ||
19 | } | ||
20 | |||
21 | /** | ||
22 | * @return the current board of the game | ||
23 | */ | ||
24 | public Board getCurrentBoard() { | ||
25 | return currentBoard; | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * @param context the current context | ||
30 | * @return a list of new events to perform | ||
31 | */ | ||
32 | public List<Event> update(Context context) { | ||
33 | //TODO | ||
34 | } | ||
35 | |||
5 | } | 36 | } |