cardgame.java

来自「用Java写的网络大战游戏」· Java 代码 · 共 30 行

JAVA
30
字号
import java.io.*;
import java.net.*;
import java.util.*;

public class CardGame extends Thread {
    Socket socket;
    Connections cn;
    BufferedReader in;
    PrintWriter out;
    Vector SendAllUser;
    Vector Allusers;
    String UserLogin = new String();
    String UserLogintmp = new String();
    String UserPassword = new String();
    Vector outlist = new Vector();
    String channel = new String();
    int boss = 1;
    int tmprunm;
    int chatroom_id;
    int channel_id = 0, moneycount = 2000;
    int f, n;
    String control;
    public CardGame(Socket c, Connections con) throws IOException {
        this.socket = c;
        this.cn = con;
        in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
        out = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));
    }
    public void run() {
        String defulChannel = new String("General"); //秈

⌨️ 快捷键说明

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