-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ladder.java
64 lines (49 loc) · 994 Bytes
/
Ladder.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
/*Βέλλιος Γεώργιος-Σεραφείμ ΑΕΜ:9471 velliosg@ece.auth.gr Πέτρος Θεολόγου ΑΕΜ:9464 petrtheo@ece.auth.gr */
public class Ladder {
int ladderId;
int upStepId;
int downStepId;
boolean broken;
public Ladder(Ladder a){
ladderId=a.ladderId;
upStepId=a.upStepId;
downStepId=a.downStepId;
broken=a.broken;
}
public Ladder() {
ladderId=0;
upStepId=0;
downStepId=0;
broken=false;
}
public Ladder(int a, int b, int c, boolean d) {
ladderId=a;
upStepId=b;
downStepId=c;
broken=d;
}
public int getLadderId() {
return ladderId;
}
public int getUpStepId() {
return upStepId;
}
public int getDownStepId() {
return downStepId;
}
public boolean getBroken() {
return broken;
}
public void setLadderId(int a) {
ladderId=a;
}
public void setUpStepId(int a) {
upStepId=a;
}
public void setDownStepId(int a) {
downStepId=a;
}
public void setBroken(boolean a) {
broken=a;
}
}