`
jxqc_job
  • 浏览: 529 次
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
holdpuke_3 holdpuke_3
包:com.youth.game.domain
1. Bout.java
package com.youth.game.domain;

import java.util.List;


/**
 * 回合
 * @author hadoop
 *
 */
public class Bout {

	private long id;
	/**
	 * 公共牌,一共有五张,用" "分割  CT D3 SJ D9 DA
	 */
	private String publicCards ;
	
	private List<User> users; //参赛用户;
	
	private List<BoutDetails> details;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getPublicCards() {
		return publicCards;
	}

	public void setPublicCards(String publicCards) {
		this.publicCards = publicCards;
	}

	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public List<BoutDetails> getDetails() {
		return details;
	}

	public void setDetails(List<BoutDetails> details) {
		this.details = details;
	}
	
	
}


2. BoutDetails.java
package com.youth.game.domain;

public class BoutDetails {

	private long id;
	
	private Bout bout; //所属回合
	
	private User user;//参赛的用户
	
	private int seatNumber; //用户的座位号
	
	private String cards; //用户所拥有的牌
	
	private String showCards;//用户最终选择的牌 (自己的牌 和公共牌的结合后,比输赢的牌);
	
	private String cardType; //比输赢时的牌型 显示的为 FULL_HOUSE 等信息
	
	private boolean result; //输赢结果;
	
	private long score ; //得分;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Bout getBout() {
		return bout;
	}

	public void setBout(Bout bout) {
		this.bout = bout;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getSeatNumber() {
		return seatNumber;
	}

	public void setSeatNumber(int seatNumber) {
		this.seatNumber = seatNumber;
	}

	public String getCards() {
		return cards;
	}

	public void setCards(String cards) {
		this.cards = cards;
	}

	public String getShowCards() {
		return showCards;
	}

	public void setShowCards(String showCards) {
		this.showCards = showCards;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public long getScore() {
		return score;
	}

	public void setScore(long score) {
		this.score = score;
	}
	
	
}


3. User.java
package com.youth.game.domain;

import java.util.Date;

public class User {

	private long id;
	private String name;
	private String password;
	
	private long score; //游戏积分
	
	private long winCount;//获胜的次数
	
	private long drawCount;//和局的次数
	
	private long fleeCount;//逃跑的次数
	
	private boolean disable;//账户是否可用;
	
	private Date registrationDate;//注册时间;
	
	private Date lastLoginDate;//最后登录时间

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getScore() {
		return score;
	}

	public void setScore(long score) {
		this.score = score;
	}

	public long getWinCount() {
		return winCount;
	}

	public void setWinCount(long winCount) {
		this.winCount = winCount;
	}

	public long getDrawCount() {
		return drawCount;
	}

	public void setDrawCount(long drawCount) {
		this.drawCount = drawCount;
	}

	public long getFleeCount() {
		return fleeCount;
	}

	public void setFleeCount(long fleeCount) {
		this.fleeCount = fleeCount;
	}

	public boolean isDisable() {
		return disable;
	}

	public void setDisable(boolean disable) {
		this.disable = disable;
	}

	public Date getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(Date registrationDate) {
		this.registrationDate = registrationDate;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}
	
	
	
}


Global site tag (gtag.js) - Google Analytics