diff options
Diffstat (limited to 'src/main/java/fr/umlv')
-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 | } |