blob: 0a16e33f55b7a9b2a2b597643739ebd80d633b43 (
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 pWestExit, final Room pSouthExit, final Room pEastExit) {
this.aNorthExit = pNorthExit;
this.aSouthExit = pSouthExit;
this.aEastExit = pEastExit;
this.aWestExit = pWestExit;
}
}
|