个人开发的国际象棋源代码

源代码在线查看: header.java

软件大小: 1334 K
上传用户: NJ_WK
关键词: 国际 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				package org.acerge.message;
				
				import java.io.Serializable;
				
				public class Header implements Serializable{
					private String headerString;
					private Header(String hs){this.headerString=hs;}
					public boolean equals(Object ob){
						return (ob instanceof Header) && ((Header)ob).headerString.equals(headerString);
					}
					public int hashCode(){return headerString.hashCode();}
					public static final Header PIECE_MOVEED=new Header("piece moved");
					public static final Header CHART=new Header("chart message");
					public static final Header RED_TIME_USED=new Header("red time used!");
					public static final Header BLACK_TIME_USED=new Header("black time used!");
					public static final Header SET_TIME_RULE=new Header("set time rule");
					public static final Header DISAGREE=new Header("disagree");
					public static final Header AGREE=new Header("agree");
					public static final Header SYSINFO=new Header("Sysinfo from opponent.");
					public static final Header BLACK_FAILED=new Header("black failed");
					public static final Header RED_FAILED=new Header("red failed");
				}
							

相关资源