diff options
Diffstat (limited to 'src/esieequest/model/Game.java')
-rw-r--r-- | src/esieequest/model/Game.java | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/esieequest/model/Game.java b/src/esieequest/model/Game.java index 7f124e7..05fdcd2 100644 --- a/src/esieequest/model/Game.java +++ b/src/esieequest/model/Game.java | |||
@@ -1,5 +1,7 @@ | |||
1 | package esieequest.model; | 1 | package esieequest.model; |
2 | 2 | ||
3 | import lombok.Getter; | ||
4 | import lombok.Setter; | ||
3 | import net.pacien.util.CleanJSONObject; | 5 | import net.pacien.util.CleanJSONObject; |
4 | 6 | ||
5 | import org.json.simple.JSONArray; | 7 | import org.json.simple.JSONArray; |
@@ -33,6 +35,8 @@ public class Game implements SerialisableObject { | |||
33 | private final boolean challenge; | 35 | private final boolean challenge; |
34 | 36 | ||
35 | private static final String PLAYER_LABEL = "P"; | 37 | private static final String PLAYER_LABEL = "P"; |
38 | @Getter | ||
39 | @Setter | ||
36 | private Player player; | 40 | private Player player; |
37 | 41 | ||
38 | private static final String ROOMS_LABEL = "R"; | 42 | private static final String ROOMS_LABEL = "R"; |
@@ -72,23 +76,6 @@ public class Game implements SerialisableObject { | |||
72 | } | 76 | } |
73 | 77 | ||
74 | /** | 78 | /** |
75 | * @return the player | ||
76 | */ | ||
77 | public Player getPlayer() { | ||
78 | return this.player; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * Sets the player | ||
83 | * | ||
84 | * @param player | ||
85 | * the Player to set | ||
86 | */ | ||
87 | public void setPlayer(final Player player) { | ||
88 | this.player = player; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * Connects Room-s together using Door-s. | 79 | * Connects Room-s together using Door-s. |
93 | */ | 80 | */ |
94 | public void connectRooms() { | 81 | public void connectRooms() { |