- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoom.java
More file actions
Latest commit
59 lines (48 loc) · 815 Bytes
/
Copy pathRoom.java
File metadata and controls
59 lines (48 loc) · 815 Bytes
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
publicclassRoom
{
privateboolean_upExit, _rightExit, _downExit, _leftExit;
privateObjectcontents;
publicRoom(booleanup, booleanright, booleandown, booleanleft)
{
_upExit = up;
_rightExit = right;
_downExit = down;
_leftExit = left;
}
publicbooleangetUpExit()
{
return_upExit;
}
publicbooleangetRightExit()
{
return_rightExit;
}
publicbooleangetLeftExit()
{
return_leftExit;
}
publicbooleangetDownExit()
{
return_downExit;
}
publicvoidsetUpExit(booleanexit)
{
_upExit = exit;
}
publicvoidsetRightExit(booleanexit)
{
_rightExit = exit;
}
publicvoidsetLeftExit(booleanexit)
{
_leftExit = exit;
}
publicvoidsetDownExit(booleanexit)
{
_downExit = exit;
}
publicObjectgetContents()
{
returncontents;
}
}