aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-02-23 22:27:36 +0100
committerPacien TRAN-GIRARD2014-02-23 22:27:36 +0100
commitf84606424a6d14d9a125aca48de5d5b7934eaa7a (patch)
treea88690b6a17c3caf494887ee4f8f4bab87801761
parent990c537953dc9b8a7e5236a9c23e8978ea746348 (diff)
downloadesieequest-f84606424a6d14d9a125aca48de5d5b7934eaa7a.tar.gz
Add description getter
-rw-r--r--src/esieequest/Room.java14
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.