onehandcard.java

来自「别人的大作」· Java 代码 · 共 49 行

JAVA
49
字号
package poker;/** * <p>Title: 斗地主</p> * <p>Description:记录一手牌 </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author 李艳生 * @version 1.0 */public class OneHandCard {	//牌型:单张、对子、三张、三带一、四带二、单顺、子妹对、三顺、飞机带翅膀、炸弹、火箭11种牌型	private String pokeType;	//点数	private int pokePower;	//连牌数	private int pokeCount;    public OneHandCard() {		pokeType = "";		pokePower = 0;		pokeCount = 0;    }	public OneHandCard(String type, int power, int count) {		this.pokeType = type;		this.pokePower = power;		this.pokeCount = count;	}    public int getPokeCount() {		return pokeCount;    }    public int getPokePower() {		return pokePower;    }    public String getPokeType() {		return pokeType;    }    public void setPokeType(String pokeType) {		this.pokeType = pokeType;    }    public void setPokePower(int pokePower) {		this.pokePower = pokePower;    }	public void setPokeCount(int pokeCount) {		this.pokeCount = pokeCount;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?