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

📄 cipclient.java

📁 笑傲江湖用JAVA开发的网络小游戏采用CS开发模式开发的
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
import java.io.*;
import java.net.*;
import java.util.Vector;
import java.util.StringTokenizer;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

import sun.audio.*;

class Admin implements Serializable
{
	String Admin="";
	String YNnewAdmin="";
}
class SCMessage implements Serializable
{
	String scMessage;
}
class RegSCMessage implements Serializable
{
	String RegscMessage;
}
class LoginSCMessage implements Serializable
{
	String LoginscMessage;
}
class GLogin implements Serializable
{
	String name;
	String VER;
	String GLoginMessage="1";
}
class FromU238 implements Serializable
{
	String ToU238Name;
	String FromName;
	String WhatOperation;
	String U="0";
}
class U238 implements Serializable
{
	String U238;
	int U238N;
	String FromName;
	String WhatOperation;
	String U="0";
	String Twho="";
	String YNQZTR="0";
}
class Reg implements Serializable
{
	String Name;
	String Pass;
	String Pass2;
	String Age;
	String Sex;
	String jhmp;
	String WebURL;
	String QQ;
	String From;
	String Other;
	String IP;
}
class Login implements Serializable
{
	String Name;
	String Pass;
}
class Title implements Serializable
{
	String fromwho;
	String towho;
	String Titleinformation;
	String TitleXQ="";
	String fromQ="";
	String fromH="";
	String toQ="";
	String toH="";
	String YNLogin="";
}
class Chat implements Serializable
{
	String fromwho;
	String towho;
	String chatinformation;
	String YNSL;
	String ChatXQ="";
	String fromQ="";
	String fromH="";
	String toQ="";
	String toH="";
}
class PM implements Serializable
{
	String fromwho;
	String towho;
	String PMinformation;
	String PMXQ="";
}
class AD implements Serializable
{
	String AD;
}
class Exit implements Serializable
{
	String name;
}
class OnlineUser implements Serializable
{
	String OnlineUserList="大家";
	String newuser;
	String exituser;
	String operation;
	String custIP;
	String Q="";
	String H="";
}
public class CipClient implements Runnable,ActionListener,ItemListener
{
	JFrame frameMain;
	
	JPanel panelMain;
	JPanel panelLogin;
	JPanel panelReg;
	JPanel panelChat;
	JPanel panelOnlineUser;
	JPanel panelOperation;
	JPanel panelOperation2;
	JPanel panelOperation3;
	JPanel panelAD;
	JPanel panelPM;
	JPanel panelChatMessage;
	
	Label labelLoginName;
	Label labelLoginPass;
	TextField textLoginName;
	JPasswordField textLoginPass;
	
	Button buttonLoginOK;
	Button buttonLoginReg;
	Button buttonLoginCancel;
	
	Button buttonOperationSend;
	Button buttonOperationRe;
	Button buttonOperationPlayM;
	Button buttonOperationStopM;
	Button buttonOperationCls;
	Button buttonOperationClsMe;
	
	Button buttonOperationPM;
	
	JButton buttonOperationF5;
	JButton buttonOperationExit;
	JButton buttonOperationSuperManage;
	JButton buttonOperationSaveChatMessage;
	Button buttonOperationSL;
	//Checkbox buttonOperationSL;
	TextField textOperationMessageSend;
	TextField textOperationMessagePM;
	
	TextField textOperationFromName;
	Label labelOperationTo;
	TextField textOperationToName;
	
	TextArea textChatMessageAD;
	TextField textChatMessageTitle;
	TextArea textChatMessage;
	TextArea textChatMessageMe;
	
	static Choice choiceAdmin;
	
	Choice choiceOperationXQ;
	Choice choiceOperationCYGN;
	Choice choiceOperationGLGN;
	Choice choiceOperationMPGL;
	Choice choiceOperationDDFW;
	
	List list;

	Socket toServer;
	ObjectInputStream objectIn;
	ObjectOutputStream objectOut;
	Thread clientThread;
	
	AudioStream cxajh_music_1;
	AudioStream cxajh_music_2;
	AudioStream cxajh_music_3;
	AudioStream cxajh_music_4;
	AudioStream cxajh_music_5;
	AudioStream cxajh_music_6;
	AudioStream cxajh_music_7;
	AudioStream cxajh_music_8;
	AudioStream cxajh_music_9;
	AudioStream cxajh_music_10;
	
	AudioStream cxajh_music_cd;
	AudioStream cxajh_music_ad;
	
	FileInputStream cxajh_mid_1;
	FileInputStream cxajh_mid_2;
	FileInputStream cxajh_mid_3;
	FileInputStream cxajh_mid_4;
	FileInputStream cxajh_mid_5;
	FileInputStream cxajh_mid_6;
	FileInputStream cxajh_mid_7;
	FileInputStream cxajh_mid_8;
	FileInputStream cxajh_mid_9;
	FileInputStream cxajh_mid_10;
	
	FileInputStream cxajh_mid_cd;
	FileInputStream cxajh_mid_ad;
	
	
	String thisname;
	
	String toMeName;
	String toOnlineUserN;
	
	GridBagLayout gl;	
	GridBagConstraints gbc;
	
	RegWindow regWindow;
	
	Calendar calendar;
	
	String dateSystemTime;
	
	int dateSystemTimeMusic;
	
	static String YNAdmin="0";
	
	static int musics=58;
	
	static int ADS=0;
	
	public CipClient(String ServerIP,int ServerPOST,String YNPlayMusic)
	{
		frameMain               =new JFrame("【祝贺笑傲江湖】客户端测试版v1.0 By:CIP Test:CIP QYC 建议使用1024*768分辨率来执行本江湖客户端能达到最佳效果");
		panelMain               =new JPanel();
		panelLogin              =new JPanel();
		panelReg                =new JPanel();
		panelChat               =new JPanel();
		panelOperation          =new JPanel();
		panelOperation2         =new JPanel();
		panelOperation3         =new JPanel();
		panelAD                 =new JPanel();
		panelPM                 =new JPanel();
		panelChatMessage        =new JPanel();
		panelOnlineUser         =new JPanel();
		labelLoginName          =new Label("大侠名号:");
		labelLoginPass          =new Label("   进入令牌:");
		textLoginName           =new TextField(16);
		textLoginPass           =new JPasswordField(12);
		buttonLoginOK           =new Button("闯荡江湖");
		buttonLoginReg          =new Button("大侠诞生");
		buttonLoginCancel       =new Button("退隐山林");
		textOperationFromName   =new TextField(6);
		labelOperationTo        =new Label("对");
		textOperationToName     =new TextField(6);
		textOperationMessageSend=new TextField(32);
		textOperationMessagePM  =new TextField(58);
		buttonOperationSL       =new Button("打开私聊");
		buttonOperationSend     =new Button("发送");
		buttonOperationRe       =new Button("重写");
		buttonOperationPlayM    =new Button("随机播放音乐");

⌨️ 快捷键说明

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