JIANGXINORMALUNIVERSITY
学士学位论文
THESISOFBACHELOR
(2006—2010年)
基于Android操作
系统的中国象棋手机游戏
ChineseChessApplicationbasedonAndroidMobileOS
bsp; 曹
中_华
姓
名:
刘
盛_旗
学
号:
0667110121
学
院:
软件学院
专
业:
软件工程
声
明
本人郑重声明:所呈交的
毕业设计(论文)是本人在指导教师指导下进行的研究
工作及取得的研究成果。其中除加以标注和致谢的地方,以及法律规定允许的之外,不包含其他人已经发表或撰写完成并以某种方式公开过的研究成果,也不包含为获得其他教育机构的学位或证书而作的材料。其他同志对本研究所做的任何均已在文中作了明确的说明并表示谢意。本毕业设计(论文)成果是本人在江西师范大学读书期间在指导教师指导下取得的,成果归江西师范大学所有。特此声明。
声明人(毕业设计(论文)作者):声明人(毕业设计(论文)作者)签名:
签名日期:
年
月
日
摘
要
摘
弈记录的休闲棋牌类手机游戏。
要
cnChess是运行在Android平台上的一款支持双人联网对局、即时聊天、对系统采用面向对象的编程思想进行构思与分析设计;使用UML构建软件模型;使用MVC架构模式实现系统的整体架构及各模块之间的接口设计;在系统的实践过程中还采用了部分GoF的设计模式进行编码与开发。本文详细系统地阐述了在Android平台上,应用MVC分层架构模式及面向对象的软件开发思想对cnChess游戏系统的分析、设计及实现过程。在项目的实践过程中,主要用到了以下技术:手机布局主要使用了XML设计,
程序及其子模块的生命周期管理用到了Activity流程控制,数据储存方面使用的是轻量级数据库SQLite、
网络通讯部分使用的是XMPP即时通讯协议进行数据的传输、对弈的画面更新使用的是手机的2D图形编程。本论文的前半部分将简要介绍系统相关的行业信息及基础的技术知识,后半部分将对本人在系统各模块中所使用的关键技术的实现进行了全面的介绍。关键词:联网对弈;中国象棋;手机游戏;Android平台关键词
I
ABSTRACT
ABSTRACT
CnChessisaChineseChessgamethatrunningontheAndroidplatform.Itsupportmanyofthefeaturessuchasplayinggamesthroughthenetwork,real-timechat,andplaychessrecordsofcasualmobilegames.TheCnChessgameisobject-orientedprogrammingdesignandanalysisoftheideaofthinking;buildsoftwaremodelsusingUML;useofMVCarchitecturepatternstoachievetheoverallsystemandtheinterfacebetweenthemoduledesigns;inpracticethesystemalsousessomeoftheGoF'sdesignpatternstocodinganddevelopment.ThispapersystematicallyexpoundedintheAndroidplatform,theapplicationofMVCpatternandhierarchicalstructureofobject-orientedsoftwaredevelopmentthoughtscnChessgamesystemanalysis,designandimplementationprocess.Practiceinthecourseoftheproject,mainlyusedinthefollowingtechnologies:cellphonesprimarilyuseXMLlayoutdesign,processandlifecyclemanagementsub-moduleusestheActivityprocesscontrol,datastorageareasusingalightweightdatabaseSQLite,netwrokcommunicationSomeusetheXMPPinstantmessagin
gprotocolfordatatrans
mission,publicdebateoftheframeusingamobilephone2Dgraphicsprogramming.Thefirstpartofthispaperwillbrieflyintroducethesystembasedonrelevantindustryinformationandtechnicalknowledge,thelatterpartofeachmoduleinthesystem;Iwillbeinthekeytechnologyusedintherealizationofacomprehensiveintroduction.Key
words:Networkofgames;Chinesechess;MobileGames;Androidpl