diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/Room.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/esieequest/Room.java b/src/esieequest/Room.java index 9bfb40b..0ba71d9 100644 --- a/src/esieequest/Room.java +++ b/src/esieequest/Room.java | |||
@@ -7,9 +7,9 @@ import java.util.Set; | |||
7 | * A room. | 7 | * A room. |
8 | * | 8 | * |
9 | * A "Room" represents one location in the scenery of the game. It is connected | 9 | * A "Room" represents one location in the scenery of the game. It is connected |
10 | * to other rooms via exits. The exits are labeled north, east, south, west. | 10 | * to other rooms via exits. The exits are labeled north, east, south, west. For |
11 | * For each direction, the room stores a reference to the neighboring room, or | 11 | * each direction, the room stores a reference to the neighboring room, or null |
12 | * null if there is no exit in that direction. | 12 | * if there is no exit in that direction. |
13 | * | 13 | * |
14 | * @author Pacien TRAN-GIRARD | 14 | * @author Pacien TRAN-GIRARD |
15 | * @author Benoit LUBRANO DI SBARAGLIONE | 15 | * @author Benoit LUBRANO DI SBARAGLIONE |
@@ -35,6 +35,14 @@ public class Room { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Return the description of the room (the one that was defined in the | ||
39 | * constructor). | ||
40 | */ | ||
41 | public String getShortDescription() { | ||
42 | return this.aDescription; | ||
43 | } | ||
44 | |||
45 | /** | ||
38 | * Return a long description of this room, of the form: | 46 | * Return a long description of this room, of the form: |
39 | * | 47 | * |
40 | * You are in the kitchen. | 48 | * You are in the kitchen. |