• 大小: 799KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-12
  • 语言: Java
  • 标签: 五子棋  

资源简介

功能很全的网络版五子棋,运行的时候先运行Server1再运行登陆界面,密码在TXT文件里。

资源截图

代码片段和文件信息

package com.yidu.snail.client;

import javax.swing.JLabel;

/**
 * 该类定义了棋子的相关属性
 * @author 尹继承
 *
 */
public class Cheese extends JLabel{

/**
 * 自动添加的序列化ID字段
 */
private static final long serialVersionUID = -1562872886048003976L;

/**
 * 该棋子所在的x点
 */

private int x;
/**
 * 该棋子所在的y点
 */
private int y;

/**
 * 构造方法定义大小和不可改变的坐标
 * @param x x点的坐标
 * @param y y点的坐标
 */
public Cheese(int x int y) {
super();
this.x = x;
this.y = y;
//设置坐标值
setSize(35 35);
}

/**
 * 获得x的值
 * @return x轴的坐标
 */
public int getx() {
return x;
}

/**
 * 获得y的值
 * @return y轴的坐标
 */
public int gety() {
return y;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        232  2011-03-05 10:03  snail1.0\.classpath

     文件        384  2011-03-07 09:16  snail1.0\.project

     文件        625  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\Cheese.class

     文件       7840  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\Cheeseframe.class

     文件       5848  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\LoginFrm.class

     文件       1417  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\MyComboBox.class

     文件       1063  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\Pointer.class

     文件       1305  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\RegisterFrm$1.class

     文件        818  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\RegisterFrm$2.class

     文件       3431  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\RegisterFrm$3.class

     文件       1282  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\RegisterFrm$4.class

     文件       4090  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\RegisterFrm.class

     文件       5399  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\server\ClientRecieve.class

     文件       2437  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\client\server\HostInfo.class

     文件       4021  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\event\CheeseEvent.class

     文件       1684  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\event\MessageEvents.class

     文件        950  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\event\Play.class

     文件       3054  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\event\PlayThread.class

     文件       2928  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\event\Save.class

     文件       2208  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\event\StartEvent.class

     文件       1636  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\server\Message.class

     文件       1900  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\server\Server.class

     文件       1512  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\server\Server1$1.class

     文件       4309  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\server\Server1.class

     文件       2403  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\server\ServerTest.class

     文件       2374  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\server\UserCommunicate.class

     文件        648  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\server\UserInfo.class

     文件       3564  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\util\GameOpr.class

     文件       3147  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\util\GetResult.class

     文件       5079  2011-03-07 09:16  snail1.0\bin\com\yidu\snail\util\UserInfoOperator.class

............此处省略103个文件信息

评论

共有 条评论