游戏项目文档_第1页
游戏项目文档_第2页
游戏项目文档_第3页
游戏项目文档_第4页
游戏项目文档_第5页
已阅读5页,还剩14页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

【祝贺笑傲江湖】

项目文档

项目名称:【祝贺笑傲江湖】

项目类型:江湖聊天社区/网络游戏

总策划、总制作、总编程、总开发:欧阳山

开发助理:.瞿亚初测试:欧阳山瞿亚初等

项目作者班级:N11T2044

文档作者:欧阳山文档制作助理:瞿亚初

项目官方演示:

项目官方网站:

技术支持论坛:

技术支持E-mail:.

技术支持QQ:17959223(欧阳山)79682191(欧阳山)

公元二OO五年四月十四日

项目目标

项目进度表

类、方法、属性列表

类图

用例图

缺陷报告

测试用例报告

屏幕格式

项目目标:

开发成大型江湖聊天社区!可以聊天、游戏和管理以及有其它附属设备等!

1.聊天方面:

服务器方面:

在线列表连接服务器的客户数

监视私聊监视千里传音关闭江湖服务器清除江湖服务器总日志

客户连接、登陆、注册、退出、各种操作的监视且都有独立的自动记录文件

清除K私聊监视]及K千里传音监视]口志等等…

客户端方面:

登陆注册退出

在线列表在线列表人数私聊T•里传音(短消息)江湖横幅(标题)

分屏聊天自己的名字用"O"括起来方便查看

公共区清屏个人区清屏随机播放音乐停止当前音乐选择聊天心情

可以实现X对Y说(也就是聊天指定对象)显示六扇门消息(系统公告)等等…

2.管理方面:

服务器方面:

设置管理员发布系统公告发布群千里传音

投特大核能飞弹[彻底死机)踢人群踢人

当某个时候产生了不能踢人的情况的时候可以使用强制踢人功能强制踢某个人

服务器可以看见所有人的IP地址等等…

客户端方面:

超级管理员有以下特权:

免疫服务器端的群踢人管理方面可以操作六扇门弟子(即:一般管理员)

免疫其它管理方面的操作

服务器添加管理员时不用添加!系统会自动添加到管理员列表等等…

一般管理员和超级管理员都拥有以下管理权限

*

投原子弹(基本死机)投特大核能飞弹(彻底死机)

点穴(只能看不能发言)解穴(消除点穴的噪作)

清屏(清除所有人的屏幕)踢人抵抗其它非超级管理员操作等等…

3.安全方面:

服务器方面:

各种操作都需要密码验证密码验证分超级管理密码及管理密码

即时数据自动分20个文件左右记录/保存/备份等等…

客户端方面:

用户登陆需要密码已经登陆的用户不能重复登陆用户注册不能注册同名

等等…

其它方面:

注册与登陆验证都通过服务器来验证大大提高了系统安全性与稳定性

用户注册资料全部都保存在服务器上等等…

4.其它方面:

服务器方面:

一台电脑可以同时开多个江湖服务器

且在同一台电脑上的多个江湖服务器可以接受同一台电脑上的客户端连接

以下写在服务器运行的批处理文件内:

运行的时候可以设置:

使用的端口号多个一般管理员管理密码超级管理密码等等…

客户端方面:

一台电脑可以同时连接多个江湖服务器

且可以同时连接在一台电脑上的多个江湖服务器

以下写在客户端运行的批处理文件内:

运行的时候可以设置:连接服务器的IP地址等等…

其它方面:

注册方面的验证很严格所有注册信息都必须填写

注册用户名长度为I到7位且密码长度为6到30位

有些操作有音乐刚开始有音乐随机播放

名字在整个江湖社区中是唯一注册资料保存在服务器上

运行的时候巧妙使用批处理文件方便运行

在更新功能后服务器与客户端有版本匹配是否使用功能

也就是客户端如果版本与服务器版本不匹配的话将不能运行

并提示需要重新到服务器下载客户端文件以达到两边同时更新的目的等等…

项目进度表:

活动开始时间结束时间责任

设计4月4日4月13日欧阳山

设计评审4月4日4月13日欧阳山瞿亚初

设订整理4月4日4月13日欧阳山

编码单位1

4月5日4月14日欧阳山

(客户)

编码单位2

4月5日4月14日欧阳山

(服务器)

单位测试1

4月5日4月14日欧阳山

(对于客户)

单位测试1

4月5日4月14日欧阳山

整理

单位测试2

4月5日4月14日欧阳山

对于服务器

单位测试2

4月5日4月14日欧阳山

整理

集成(客户和服

4月5日4月14日欧阳山

务器)

最后测试4月13日4月14日欧阳山瞿亚初

最后整理4月13日4月14日欧阳山

最后评审4月13日4月14日欧阳山瞿亚初

类、方法、属忸列表:方法属性

类名

classADimplementsStringAD

Serializable

classAdminimplementsStringAdmin=""

SerializableStringYNnewAdmin=""

classChatimplementsStringfromwho

SerializableStringtowho

Stringchatinformation

StringYNSL

StringChatXQ=,'"

StringfroniQ=""

StringfromH=""

StringtoQ="”

String

publicclassCipClientpublicCipClient(StringJFrameframeMain

implementsServerIP,intServerPOST)构造JPanelpanclMain

Runnable,ActionListener,I函数JPanelpanelLogin

temListenerpublicvoidDX()JPanelpanelReg

publicvoidJS1()JPanelpaneiChat

publicvoidJSCOKOJPanelpanelOnlineUser

publicvoidJX()JPanelpanelOperation

publicvoidSD1()JPanelpanelOperation2

publicvoidSDCSC()JPanelpanclAD

publicvoidSend_Chat()JPanelpanelPM

publicvoidSend_PM()JPanelpanelChatMessage

publicvoidScnd_Titlc()LabellabclLoginNanic

publicvoidSend_U238(StringLabellabelLoginPass

SecWhatOperalion)TextFieldtextLoginName

publicvoidJPasswordFieldtextLoginPass

actionPerformed(ActionEventButtonbuttonLoginOK

avt)ButtonbutlonLoginReg

publicvoidButtonbuttonLoginCanccI

itemStateChanged(ItemEventButtonbuttonOperationSend

ivt)ButtonbuttonOperationRe

publicstaticvoidmain(StringButtonbuttonOpcrationPlayM

args⑴ButtonbuttonOperationStopM

publicvoidmusic()ButtonbultonOperationCls

publicvoidmusicSJ()ButtonbuttonOperationClsMe

publicvoidrun()ButtonbuttonOperationPM

JButtonbuttonOperationF5

JButtonbuttonOpcrationExit

JButton

buttonOperationSuperManage

JButton

buttonOperationSaveChatMessag

ButtonbuttonOperationSL

TextField

textOperationMessageSend

TextField

textOperationMessagePM

TextField

tcxtOpcrationFromNamc

LabellabelOperationTo

TextFieldtextOperalionToName

TcxtArcatcxtChatMcssagcAD

TextFieldtextChatMessageTitle

TextAreatextChatMessage

TextAreatextChatMessageMe

staticChoicechoiceAdmir.

ChoicechoiceOperationXQ

ChoicechoiccOpcrationCYGN

ChoicechoiceOperationGLGN

Listlist

SockettoScrvcr

ObjectlnputStreamobjectin

ObjectOutputStreamobjectOut

ThreadclicntThread

AudioStreamcxtyh_niusic_l

AudioStreamcxajh_music_2

AudioStreamcxajh_rnusic_3

AudioStreamcx<ijh_niusic_4

AudioStreamcxajh_music_5

AudioStreamcxajh_rnusic_6

AudioStreamcxcijh_niusic_7

AudioStreamcxajh_music_8

AudioStreamcxajh_music_9

AudioStrcamcxajh_music_10

AudioStreamcxajh_niusic_cd

FilelnpuiStreamcxajh_mid_l

FilelnputStreamcxajh_mid_2

FilelnputStreamcxajh_mid_3

FilelnputStreamcxajh_mid_4

FilelnputStreamcxajh_mid_5

FilelnputStreamcxajh_mid_6

FilelnputStreamcxajh_mid_7

FilelnputStreamcxiijh_mid_8

FilelnputStreamcxajh_mid_9

FileInpucStreaincxajh_inid_IO

FilelnputStreamcxajh_mid_cd

Suinglliisnaiiic

StringtoMeName

StringtoOnlincUscrN

GridBagLayoutgl

GridBagConstraintsgbe

RegWindowregWindow

Calendarcalendar

SiringdateSystemTime

intdateSystemTimeMusic

staticStringYNAdmin="0"

staticintmusics=58

publicclassCipServerpublicCipServer(intJFramefrarneMain

implementssctUscPost,StringJPanelpancIMain

Runnable,ActionListcncradminAILStringJPanelpaneIChat

adminSet,StringJPanelpanelOperalion

AdminPass,StringLabellabelSendAD

SuperAdminPass)构造函数LabellabelSendPMAll

publicvoidScnd_AD(StringLabellabelSendU238

ADMessage)LabellabelSendTR

publicvoidLabellabclSendSctAdmin

Send_PMAII(S(ringLabellabelKB2

PMAllMessage)LabellabelKB

publicvoidButtonbuttonScndAD

Scnd_SctAdmin(StringButtonbuttonSendPMAll

SetAdminMessage)ButtonbuttonSendU238

publicvoidSend_TR(SlringButtonbuttonSendTR

TRMcssagc,Stringtwho,StringButtonbuttonSendQTR

YNQZTR)ButtonbuttonSendSeiAdmin

publicvoidSend_U238(StringButtonbuttonScndClsSLPM

U238Message)ButtonbuttonSendCls

publicvoidButtonbulionSendClose

actionPerformed(ActionEventTcxtArcatcxtScndAD

avt)TextFieldtextSendPMAIl

publicvoidautoSave()TextFieldtex(SendU238

publicvuidauluSavcAdd()TextFieldtcxtScndTR

publicvoidTextFieldtextSendSetAdmin

autoSavcAddC(StringTex(Areatext

cMessage)TextAreatextSL

publicvoidTextAreatextPM

autoSavcAddClsOpcration()Listlist

publicvoidJPasswordFieldtextAdminPass

autoSaveAddExit(StringJPasswordField

cxitMcssagc)textSuperAdminPass

publicvoidServerSocketserver

autoSaveAddLogin(StringSocketfromClicnt

loginMessage)ThreadserverThread

publicvoidstaticVectoronlineuser=new

autoSaveAddOnlineUser(SlrinVector(1,1)

gonlincUscrMessagc)AudioStreamcxajh_music_cd

publicvoidFilelnputStreamcxajh_mid_cd

auloSaveAddReg(S(ringGridBagLayoutgl

regMessage)GridBagConstraintsgbe

publicvoidCalendarcalendar

autoSaveAddSuperOperation(SStringdatcSystcml'inic

tringsupert3perationMessage)StringdateSystemDate

publicvoidstaticStringSystemADal仁”欢迎

displayOnlineUser(String大家来到【祝贺笑傲江

operation,Slringuser)湖】!!!祝您聊的偷快

publicvoid哦!!!\n本江湖的网址是:

from_Send_U238(Objecthttp://cxajh.126.com\nn

object)

+”黄金广告位!有意者请发E-

publicstaticvoidmain(String

mail到“

args[])

publicvoidrun()staticStringTiUeall=""

staticStringAdminAll-'"

staticStringSystcmTitleXQ="高

兴地”

staticString

SystemTitleM*="欢迎大家

使用标题功能!”

sialicSiring

SystemTitleFromNaine="CIP"

staticString

SystemTitIeToName="大家"

staticString

SystemAdminPass="123123"

staticString

SystemSuperAdminPass="12345

678"

staticint

SystemSetUsePosl=1(X)I

classConnectextendspublicConnect(CipServcrObjcctlnputStrcamobjcctln

Threadcs,SocketinFromClient.VectorObjectOutputStreamobjectOut

ou)构造函数Objectobj

publicvoidstaticStringonlineusermsg

client_AD(ObjectOu(pu(S(reaStringcustName="此人未进入

mobjcctOutl)聊天室”

publicvoidStringcustPass

client_Admin(ObjectOutputStrStringcustIP=”未获得此人IP地

earnobjectOutl)址“

publicvoidclient_Chat(ObjectCipServercipServer

object)Vectoronlincuser

publicvoidclicnt_Exit(Objcct

Calendarcalendar

object)StringdateSystemTime

publicvoid

client_GLogin(Objectobject)

publicvoid

client_Login(Objectobject)

publicvoid

clicnt_OnlineUser(Object

object)

publicvoidclient_PM(Object

object)

publicvoidclient_Reg(Object

object)

publicvoid

c!ient_SCMessage(Object

object)

publicvoidclicnt_Titlc(Objcct

object,Stringxx)

publicvoidrun()

classExitimplementsStringname

Serializable

classFromU238StringTbU238Name

implementsSerializableStringFromName

StringWhalOperation

StringU="0"

classGLoginimplementsStringname

SerializableStringVER

StringGLoginMcssagc="1'

classLoginimplementsStringName

SerializableStringPass

classLoginSCMessageStringLoginscMessage

implementsSerializable

classOnlineUserStringOnlineUserList="大家"

implementsSerializable

Stringnewuser

Stringexituser

Stringoperation

StringcustIP

StringQ=""

StringH=""

classPMimplementsStringfromwho

SerializableStringtowho

StringPMinformation

StringPMXQ=""

classPMWindowextendspublicPMWindow(StringTextAreatext

JFramePMmessage,CipClient

cipCIient)构造函数

classRegimplementsStringName

SerializableStringPass

StringPass2

StringAge

StringSex

Stringjhmp

StringWebURL

StringQQ

StringFrom

StringOther

StringIP

classRegSCMessageStringRegscMessage

implementsSerializable

classRegWindowextendspublicJPanelpanelMain

JFrameimplementsRcgWindow(ObjcctInputStrcaTcxtFicldtcxtNamcRcg

ActionListenermIn,ObjectOutputStreamJPasswordFieldtextPassReg

Ou(,CipClientc)JPasswordFieldtextPass2

publicvoidChoicechoiceAgeReg

actionPerformed(ActionEventChoicechoiceSexReg

evt)ChoicechoicejhmpReg

TextFieldtextWebURLReg

TextFicldtcxtQQReg

ChoicechoiceFroinReg

TextAreatextOtherReg

LabellabelName

LabellabelPass

LabellabelPass2

LabellabclAgc

LabellabelSex

Labellabeljhmp

LabellabelWcbURL

LabellabelQQ

LabellabelFrom

LabellabclOthcr

LabellabelKB

ButtonbullonOK

ButtonbuttonClose

GridBagLayoutgl

GridBagConstraintsgbe

ObjectlnputStreamobjectin

ObjectOutputStreamobjectOut

CipCIientcipCIient

Calendarcalendar

StringdatcSystcmTimc

classSCMcssageStringscMcssagc

implementsSerializable

classTitleimplementsStringfromwho

SerializableStringtowho

StringTitleinformation

StringTilleXQ=""

StringfromQ=""

StringfromH=""

StringloQ=""

StringtoH=""

StringYNLogin=,H,

classU238implementsStringU238

SerializableintU238N

StringFromName

StringWhatOperation

StringU="0"

StringTwho=,'"

StringYNQZTR="0'^

classU238WindowpublicU238Window(StringTextAreatext

extendsJFrameU238,intiii)构造函数

类图:

客户端类图

connect

chatroomserver

|-scrvcr-client

-in

-vector

-out

卜thread____________

一-chatserver

1+chatroomserverO-name

+run()-line

kmainO

|+send(,____________

服务器类图

register

-panel1

-panel2

-labelname

-con

-labelcon

-textname

-tcxtpwd

-sexi

-group

-login

-enter

-out

-url

-cn

-in

+init()

+actionPerformed()

+itemStateChanged()

注册类图

login

-panel1

-pane12

-labelname

-textname

-tcxtpwd

-login

-url

-con

+init()

+actionPerformed()

登陆类图

用例图:

Registry

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论