-
Notifications
You must be signed in to change notification settings - Fork 0
/
jianzhupai.java
84 lines (71 loc) · 2.12 KB
/
jianzhupai.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
81
82
83
84
package everdell;
public class jianzhupai extends kapai {
private int mutoushu;
private int shuzhishu;
private int shitoushu;
private dongwupai duiyindongwu;
public void xiaoguo(){
System.out.println("建筑牌效果");
}
public jianzhupai(String paimian) {
super.setPaimian(paimian);
super.setShuliang(1);
super.setLeixing("");
super.setWeiyi(false);
super.setFenshu(0);
super.setXiaoguoyulan("");
this.mutoushu = 0;
this.shuzhishu = 0;
this.shitoushu = 0;
}
public jianzhupai(String paimian, int shuliang) {
super.setPaimian(paimian);
super.setShuliang(shuliang);
super.setLeixing("");
super.setWeiyi(false);
super.setFenshu(0);
super.setXiaoguoyulan("");
this.mutoushu = 0;
this.shuzhishu = 0;
this.shitoushu = 0;
}
public jianzhupai(String paimian, int shuliang, String leixing, int mutoushu, int shuzhishu, int shitoushu, boolean weiyi, int fenshu, String xiaoguoyulan) {
super.setPaimian(paimian);
super.setShuliang(shuliang);
super.setLeixing(leixing);
super.setWeiyi(weiyi);
super.setFenshu(fenshu);
super.setXiaoguoyulan(xiaoguoyulan);
this.mutoushu = mutoushu;
this.shuzhishu = shuzhishu;
this.shitoushu = shitoushu;
}
public int getMutoushu() {
return mutoushu;
}
public void setMutoushu(int mutoushu) {
this.mutoushu = mutoushu;
}
public int getShuzhishu() {
return shuzhishu;
}
public void setShuzhishu(int shuzhishu) {
this.shuzhishu = shuzhishu;
}
public int getShitoushu() {
return shitoushu;
}
public void setShitoushu(int shitoushu) {
this.shitoushu = shitoushu;
}
public dongwupai getDuiyindongwu() {
return duiyindongwu;
}
public void setDuiyindongwu(dongwupai duiyindongwu) {
this.duiyindongwu = duiyindongwu;
}
public void linkKapai(dongwupai pai) {
this.setDuiyindongwu(pai);
pai.setDuiyinjianzhu(this);
}
}