⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cipclient.java

📁 笑傲江湖用JAVA开发的网络小游戏采用CS开发模式开发的
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
							else
							{
								if (u238.FromName.equals("cip"))
								{
									textChatMessage.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门掌门〖"+u238.FromName+"〗解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
									textChatMessageMe.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门掌门〖"+u238.FromName+"〗解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
								}
								else
								{
									textChatMessage.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门弟子〖"+u238.FromName+"〗解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
									textChatMessageMe.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门弟子〖"+u238.FromName+"〗解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
								}
							}
						}
						else if (this.textOperationFromName.getText().equals(u238.U238))
						{
							if (u238.FromName.length()==0)
							{
								textChatMessage.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门掌门CIP解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
								textChatMessageMe.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门掌门CIP解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
							}
							else
							{
								if (u238.FromName.equals("cip"))
								{
									textChatMessage.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门掌门"+u238.FromName+"解了〖"+u238.U238+"〗"+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
									textChatMessageMe.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门掌门"+u238.FromName+"解了〖"+u238.U238+"〗"+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
								}
								else
								{
									textChatMessage.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门弟子"+u238.FromName+"解了〖"+u238.U238+"〗"+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
									textChatMessageMe.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门弟子"+u238.FromName+"解了〖"+u238.U238+"〗"+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
								}
							}
						}
						else
						{
							if (u238.FromName.length()==0)
							{
								textChatMessage.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门掌门CIP解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
							}
							else
							{
								textChatMessage.append("【解穴】"+"["+dateSystemTime+"]"+"刚才六扇门弟子"+u238.FromName+"解了"+u238.U238+"的穴!使其重新获得了生机!又可以动了!话也可以说了!还可以随时退隐山林了!您看刚才不就说了一句:阿门~~~下次被点穴前我一定要先退隐山林!哎~~~ 吗?嘻嘻~~~\n");
							}
						}
						if (u238.U238.equals(textOperationFromName.getText()))
						{
							calendar=new GregorianCalendar();
							dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
							JX();
						}
					}
					else if (u238.WhatOperation.equals("清屏"))
					{
						textChatMessage.setText("【江湖消息】"+"["+dateSystemTime+"]"+"突然一阵阴风袭过!江湖中顿时安静下来... "+"("+u238.FromName+")"+"\n");
						textChatMessageMe.setText("【江湖消息】"+"["+dateSystemTime+"]"+"突然一阵阴风袭过!江湖中顿时安静下来... "+"("+u238.FromName+")"+"\n");
					}
				}
				else if (objIn.getClass().getName().compareTo("Admin")==0)
				{
					this.YNAdmin="0";
					Admin admin=(Admin)objIn;
					String tempAdmin="";
					StringTokenizer stinfo=new StringTokenizer(admin.Admin,"/");
					choiceAdmin.removeAll();
					choiceAdmin.add("【祝贺江湖网管列表】");
					choiceAdmin.add("当前共"+stinfo.countTokens()+"个网管");
					choiceAdmin.add("————————");
					while(stinfo.hasMoreTokens())
					{
						this.choiceAdmin.add(stinfo.nextToken());
					}
					for (int i=3;i<choiceAdmin.getItemCount();i++)
					{
						tempAdmin=tempAdmin+"“"+choiceAdmin.getItem(i)+"” ";
						if (this.textOperationFromName.getText().equals(choiceAdmin.getItem(i)))
						{
							this.YNAdmin="1";
						}
						else
						{
							continue;
						}
					}
					textChatMessage.append("【六扇门消息】"+"["+dateSystemTime+"]"+"六扇门成员(即:江湖网管)为:"+tempAdmin+"!欢迎大家监督!如果有滥用权限者欢迎向六扇门掌门CIP举报!\n");
					if (this.YNAdmin.equals("1"))
					{
						textChatMessage.append("【六扇门消息】"+"["+dateSystemTime+"]"+"六扇门掌门CIP对您的一点忠告:欢迎您!〖"+textOperationFromName.getText()+"〗六扇门的人!谢谢帮助管理!但请不要滥用职权!否则永远开除不再录取!"+"\n");
						textChatMessageMe.append("【六扇门消息】"+"["+dateSystemTime+"]"+"六扇门掌门CIP对您的一点忠告:欢迎您!〖"+textOperationFromName.getText()+"〗六扇门的人!谢谢帮助管理!但请不要滥用职权!否则永远开除不再录取!"+"\n");
					}
				}
				else if (objIn.getClass().getName().compareTo("GLogin")==0)
				{
					GLogin gLogin=(GLogin)objIn;
					if (gLogin.GLoginMessage.equals("0"))
					{
						JOptionPane.showMessageDialog(null,"当前版本过期!请重新到服务器下载最新版本!");
						System.exit(0);
					}
				}
				else if (objIn.getClass().getName().compareTo("PM")==0)
				{
					PM pm=(PM)objIn;
					//textChatMessage.append("〖短消息〗【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+"对"+chat.toQ+chat.towho+chat.toH+"说:"+pm.PMinformation+"\n");
					//textChatMessageMe.append("〖短消息〗【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+"对"+chat.toQ+chat.towho+chat.toH+"说:"+pm.PMinformation+"\n");
					//textChatMessage.append("〖短消息〗【聊天信息】"+"["+dateSystemTime+"]"+pm.fromwho+"对"+pm.towho+"说:"+pm.PMinformation+"\n");
					//textChatMessageMe.append("〖短消息〗【聊天信息】"+"["+dateSystemTime+"]"+pm.fromwho+"对"+pm.towho+"说:"+pm.PMinformation+"\n");
					calendar=new GregorianCalendar();
					dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
					new PMWindow("〖千里传音〗【聊天信息】"+"["+dateSystemTime+"]"+pm.fromwho+"用〖千里传音〗"+pm.PMXQ+"对您说:"+pm.PMinformation+"\n",this);
				}
				else if (objIn.getClass().getName().compareTo("LoginSCMessage")==0)
				{
					LoginSCMessage loginscmessage=(LoginSCMessage)objIn;
					if(loginscmessage.LoginscMessage.startsWith("OK"))
					{
						calendar=new GregorianCalendar();
						dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
						textChatMessage.append("【江湖消息】"+"["+dateSystemTime+"]"+loginscmessage.LoginscMessage.substring(2)+"\n");
						textChatMessageMe.append("【江湖消息】"+"["+dateSystemTime+"]"+loginscmessage.LoginscMessage.substring(2)+"\n");
						textOperationFromName.setText(textLoginName.getText());
						textLoginName.setText("");
						textLoginPass.setText("");
						JSCOK();
					}
					else
					{
						calendar=new GregorianCalendar();
						dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
						textChatMessage.append("【衙门提示】"+"["+dateSystemTime+"]"+loginscmessage.LoginscMessage+"\n");
					}
				}
				else if (objIn.getClass().getName().compareTo("SCMessage")==0)
				{
					SCMessage scmessage=(SCMessage)objIn;
					if(scmessage.scMessage.startsWith("OK!"))
					{
						calendar=new GregorianCalendar();
						dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
						textChatMessage.append("【江湖消息】"+"["+dateSystemTime+"]"+scmessage.scMessage.substring(3)+"\n");
						textChatMessageMe.append("【江湖消息】"+"["+dateSystemTime+"]"+scmessage.scMessage.substring(3)+"\n");
						textOperationFromName.setText(textLoginName.getText());
						textLoginName.setText("");
						textLoginPass.setText("");
						JSCOK();
					}
					else
					{
						calendar=new GregorianCalendar();
						dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
						textChatMessage.append("【衙门提示】"+"["+dateSystemTime+"]"+scmessage.scMessage+"\n");
					}
				}
				else if (objIn.getClass().getName().compareTo("RegSCMessage")==0)
				{
					RegSCMessage Regscmessage=(RegSCMessage)objIn;
					if(Regscmessage.RegscMessage.startsWith("OK"))
					{
						JOptionPane.showMessageDialog(null,"又一位大侠诞生了!!!哎~~~江湖中又要开始不安了!");
						JS1();
						regWindow.setVisible(false);
					}
					else
					{
						JOptionPane.showMessageDialog(null,Regscmessage.RegscMessage);
					}
				}
				else if (objIn.getClass().getName().compareTo("AD")==0)
				{
					AD ad=(AD)objIn;
					calendar=new GregorianCalendar();
					dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
					textChatMessageAD.setText("【六扇门消息】"+"["+dateSystemTime+"]"+ad.AD+"\n");
					System.out.println("ADS="+ADS);
					if (ADS>1)
						AudioPlayer.player.start(cxajh_music_ad);
					ADS++;
				}
				else if (objIn.getClass().getName().compareTo("OnlineUser")==0)
				{
					System.out.println("11");
					OnlineUser onlineuserlist=(OnlineUser)objIn;
					System.out.println("12");
					StringTokenizer stinfo=new StringTokenizer(onlineuserlist.OnlineUserList,"|");
					String tempname;
					list.clear();
					list.add("【祝贺笑傲江湖】");
					list.add("当前共"+(stinfo.countTokens()-1)+"人聊天");
					toOnlineUserN="当前共"+(stinfo.countTokens()-1)+"人聊天";
					list.add("————————");
					while(stinfo.hasMoreTokens())
					{
						list.add(stinfo.nextToken());
					}
					
					if ((onlineuserlist.Q.length()!=0)||(onlineuserlist.H.length()!=0))
					{
						calendar=new GregorianCalendar();
						dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
						if (onlineuserlist.operation.equals("Login"))
						{
							System.out.println("cd...");
							AudioPlayer.player.start(cxajh_music_cd);
							System.out.println("cxajh_music_cd...");
							textChatMessageMe.append("【重现江湖】"+"["+dateSystemTime+"]"+"★烈日当空"+onlineuserlist.Q+onlineuserlist.newuser+onlineuserlist.H+"骑着快马飞速进入江湖!("+onlineuserlist.custIP+")\n");
						}
						else if(onlineuserlist.operation.equals("Exit"))
						{
							textChatMessageMe.append("【退隐山林】"+"["+dateSystemTime+"]"+"一个寂寞的夜晚"+onlineuserlist.Q+onlineuserlist.exituser+onlineuserlist.H+"放弃了夕日的恩仇归隐田园种田去了!哎~~~江湖上从此又少了一条大虾!\n");
						}
						else if(onlineuserlist.operation.equals("QZTR"))
						{
							textChatMessageMe.append("【默哀】"+"["+dateSystemTime+"]"+"由于"+onlineuserlist.Q+onlineuserlist.exituser+onlineuserlist.H+"潜水时间过长!导致氧气供应不足!现在已经沉入海底了!真是惨啊~~~大家为"+onlineuserlist.Q+onlineuserlist.exituser+onlineuserlist.H+"默哀1分钟~~~\n");
						}
					}
					calendar=new GregorianCalendar();
					dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
					if (onlineuserlist.operation.equals("Login"))
					{
						System.out.println("cd...");
						AudioPlayer.player.start(cxajh_music_cd);
						System.out.println("cxajh_music_cd...");
						textChatMessage.append("【重现江湖】"+"["+dateSystemTime+"]"+"★烈日当空"+onlineuserlist.Q+onlineuserlist.newuser+onlineuserlist.H+"骑着快马飞速进入江湖!("+onlineuserlist.custIP+")\n");
					}
					else if(onlineuserlist.operation.equals("Exit"))
					{
						textChatMessage.append("【退隐山林】"+"["+dateSystemTime+"]"+"一个寂寞的夜晚"+onlineuserlist.Q+onlineuserlist.exituser+onlineuserlist.H+"放弃了夕日的恩仇归隐田园种田去了!哎~~~江湖上从此又少了一条大虾!\n");
					}
					else if(onlineuserlist.operation.equals("QZTR"))
					{
						textChatMessage.append("【默哀】"+"["+dateSystemTime+"]"+"由于"+onlineuserlist.Q+onlineuserlist.exituser+onlineuserlist.H+"潜水时间过长!导致氧气供应不足!现在已经沉入海底了!真是惨啊~~~大家为"+onlineuserlist.Q+onlineuserlist.exituser+onlineuserlist.H+"默哀1分钟~~~\n");
					}
					System.out.println("13");
				}
				else if (objIn.getClass().getName().compareTo("Chat")==0)
				{
					Chat chat=(Chat)objIn;
					if (chat.YNSL.equals("1"))
					{
						if (chat.towho.equals("大家"))
						{
							calendar=new GregorianCalendar();
							dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
							textChatMessage.append("〖私聊〗【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+chat.ChatXQ+"对"+chat.towho+"说:"+chat.chatinformation+"\n");
							textChatMessageMe.append("〖私聊〗【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+chat.ChatXQ+"对"+chat.towho+"说:"+chat.chatinformation+"\n");						
						}
						else
						{
							calendar=new GregorianCalendar();
							dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
							textChatMessage.append("〖私聊〗【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+chat.ChatXQ+"对"+chat.toQ+chat.towho+chat.toH+"说:"+chat.chatinformation+"\n");
							textChatMessageMe.append("〖私聊〗【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+chat.ChatXQ+"对"+chat.toQ+chat.towho+chat.toH+"说:"+chat.chatinformation+"\n");
						}
					}
					else if (chat.YNSL.equals("0"))
					{
						if ((chat.fromQ.length()!=0)||(chat.fromH.length()!=0)||(chat.toQ.length()!=0)||(chat.toH.length()!=0))
						{
							calendar=new GregorianCalendar();
							dateSystemTime=calendar.get(Calendar.HOUR)+":"+calendar.get(Calendar.MINUTE)+":"+calendar.get(Calendar.SECOND);
							if (chat.towho.equals("大家"))
								textChatMessageMe.append("【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+chat.ChatXQ+"对"+chat.towho+"说:"+chat.chatinformation+"\n");
							else
								textChatMessageMe.append("【聊天信息】"+"["+dateSystemTime+"]"+chat.fromQ+chat.fromwho+chat.fromH+chat.ChatXQ+"对"+chat.toQ+chat.towho+chat.toH+"说:"+chat.chatinformation+"\n");
						}
		

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -