* */
public Puker(int P_x,int P_y,Puker_num puker_num,Puker_hushe
puker_hushe)
{
this.P_x=P_x;
this.P_y=P_y;
this.puker_num=puker_num;
this.puker_hushe=puker_hushe;
this.BPuker_num();
}
/*
* 用于构造 54 张牌组的构造方法
* */
public Puker(int puker_num1,int puker_hushe1)
{
this.puker_num1=puker_num1;
this.puker_hushe1=puker_hushe1;
}
/*
*用于画牌这个对象的方法
* */
public void paint(Graphics g)
{
Color c=g.getColor();
g.setColor(Color.WHITE);
g.&ll3DRect(this.P_x, this.P_y, this.P_w, this.P_h, true);
g.setColor(Color.BLACK);
g.draw3DRect(this.P_x, this.P_y, this.P_w, this.P_h, true);
g.drawString(this.puker_n, this.P_x+5, this.P_y+20);
if(this.puker_n.equals("大王")||this.puker_n.equals("小王"))
{
}else g.drawString(this.puker_hushe.toString(), this.P_x+20,
this.P_y+20);
g.setColor(c);
}
/*
评论0
最新资源