blob: b7a33395ed0d3b6cb8ccec41901c29dfacc7f8b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package esieequest;
/**
* A room.
*
* @author Pacien TRAN-GIRARD
* @author Benoit LUBRANO DI SBARAGLIONE
*
* @version February 2014
*/
public class Room {
private String aDescription;
public Room aNorthExit;
public Room aSouthExit;
public Room aEastExit;
public Room aWestExit;
public Room(final String pDescription) {
this.aDescription = pDescription;
}
public String getDescription() {
return this.aDescription;
}
/**
* Defines the four exits (other rooms) of this room.
*/
public void setExits(final Room pNorthExit, final Room pSouthExit, final Room pEastExit, final Room pWestExit) {
this.aNorthExit = pNorthExit;
this.aSouthExit = pSouthExit;
this.aEastExit = pEastExit;
this.aWestExit = pWestExit;
}
}
|