基于java开发的蜘蛛纸牌程序设计(含源文件) 联系客服

发布时间 : 星期二 文章基于java开发的蜘蛛纸牌程序设计(含源文件)更新完毕开始阅读4a43e7d5710abb68a98271fe910ef12d2af9a93a

编号:

本科毕业论文(设计)

题目:

学 院

专 业

学 号

姓 名

指导教师 职称:

完成日期

诚 信 承 诺

我谨在此承诺:本人所写的毕业论文《》均系本人独立完成,没有抄袭行为,凡涉及其他作者的观点和材料,均作了注释,若有不实,后果由本人承担。

承诺人(签名):

年 月 日

2

基于java开发的蜘蛛纸牌程序设计

姓名:关俊生 学号: 200829010213

指导老师:李林国

摘要:java是由Sun Microsystems公司于1995年5月推出的Java程序设计语言(以下简称Java语言)和Java平台的总称。Java是面向对象的语言。蜘蛛纸牌是一款受人喜欢的休闲游戏,微软的每一代操作系统中都装有这种纸牌游戏,很多人都玩过蜘蛛纸牌,都熟悉蜘蛛纸牌游戏所需要的功能。本人做的蜘蛛纸牌游戏开发理念是基于WINDOWS XP操作系统中自带蜘蛛纸牌游戏。利用java语言实现了蜘蛛纸牌游戏的主要功能如纸牌的移动、放置、回收、重发。利用javax.swing包的类实现纸牌游戏的用户界面,通为各个菜单组件添加监视器来实现鼠标单击事件所触发的接口方法,使得用户可以单击菜单项来实现具体的功能。通过设置纸牌的等级来初始化纸牌随机分配纸牌,为用户玩纸牌游戏提供相应的等级。意义:通过自己对蜘蛛纸牌游戏的开发,使我更加热爱java语言,让我懂得和洗去了更多程序开发的知识及经验,为以后进入编程工作提供条件。 关键字:java语言、游戏背景、功能实现

Spider solitaire program based on java development

Name: Guan Junsheng Student ID: 200 829 010 213 Instructor: Li Linguo

Abstract: java is the Java programming language from Sun Microsystems, Inc. in May 1995 (hereinafter referred to as the general term of the Java language) and Java platforms. Java is object-oriented languages. Spider Solitaire is a people like casual games, each generation of Microsoft's operating system are equipped with this card game, many people have played Spider Solitaire are all familiar with the functionality required by the spider card game. I do spider solitaire game development philosophy is based on the WINDOWS XP operating system comes with the spider solitaire game. Java language to achieve the main function of the spider solitaire game, such as movement of the playing cards, place, recycling, re-issued. The use of the javax.swing package class that implements the user interface of the card game pass for each menu component to add a monitor to the mouse click event triggered by the interface method, the user can click the menu items to achieve a specific function. To initialize the cards by the level of the set of cards randomly assigned to cards, to provide the appropriate level for users playing solitaire. Meaning: the spider solitaire game development, so that I more love the java language, so I know how to wash away the more knowledge and experience of program development, and provide conditions for the future to enter the programming work.

Keywords: Java language, the background of the game functions

3

目录

1.绪论

1.1 游戏开发的背景知识..................................... 1.2 需要做的准备工作...................................... 2.开发工具介绍................................................

2.1 java语言概述.......................................... 2.2 java语言的特点........................................ 2.3 Eclipse开发平台介绍................................... 3.总体设计...................................................

3.1代码功能模块的设计.................................... 3.2 程序总体设计流程图................................... 3.3模块一的详细介绍......................................

3.3.1 主要的类....................................... 3.3.2 主要的变量...................................... 3.3.3主要的方法....................................... 3.4 模块二的详细介绍.....................................

3.4.1主要的类......................................... 3.4.2 主要的变量..................................... 3.4.3主要的方法....................................... 3.5 模块三的详细介绍......................................

3.5.1主要的类..........................................

3.5.2主要的变量....................................... 3.5.3 主要的方法........................................ 3.6模块四的详细.............................................

3.6.1主要的类...........................................

3.6.2主要的变量....................................... 3.6.3 主要的方法........................................ 4.功能设计....................................................

4.1 需要实现的主要功能...................................... 4.2 功能设计流程图.......................................... 4.3 主要功能的代码实现......................................

4.3.1 游戏菜单栏内游戏菜单及帮助菜单功能展示............ 4.3.2 主界面的设计.........................................

4.3.3 纸牌的初始化以及发牌操作.............................

4.3.4 纸牌的移动以及放置.................................... 4.3.5显示当前纸牌可行的操作................................

4.3.6 回收纸牌.............................................

5.程序的运行及发布................................................

5.1 运行程序.................................................... 5.2 发布程序.................................................... 6.工作总结........................................................ 参考文献..........................................................

4