-
Notifications
You must be signed in to change notification settings - Fork 1
/
Room.java
80 lines (66 loc) · 1.32 KB
/
Room.java
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
public class Room {
private int nroom, eroom, sroom, wroom;
private String name, desc;
public Room() {
this.nroom = -1;
this.eroom = -1;
this.sroom = -1;
this.wroom = -1;
this.name = "";
this.desc = "";
}
/**
* Constructor with full parameters, for a room you already know everything about.
*
* @param nroom
* @param eroom
* @param sroom
* @param wroom
* @param name
* @param desc
*/
public Room(int nroom, int eroom, int sroom, int wroom, String name, String desc) {
this.nroom = nroom;
this.eroom = eroom;
this.sroom = sroom;
this.wroom = wroom;
this.name = name;
this.desc = desc;
}
public int getNroom() {
return nroom;
}
public int getEroom() {
return eroom;
}
public int getSroom() {
return sroom;
}
public int getWroom() {
return wroom;
}
public String getName() {
return name;
}
public String getDesc() {
return desc;
}
public void setNroom(int nroom) {
this.nroom = nroom;
}
public void setEroom(int eroom) {
this.eroom = eroom;
}
public void setSroom(int sroom) {
this.sroom = sroom;
}
public void setWroom(int wroom) {
this.wroom = wroom;
}
public void setName(String name) {
this.name = name;
}
public void setDesc(String desc) {
this.desc = desc;
}
}