亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mudclient.java

?? 本書收入了164個完整的Java編程實例
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
					       name + ":");                    location.createPlace(me, arg, back, name, desc);                }                // CLOSE: Close a named exit.  Note: only closes an exit                // uni-directionally, and does not destroy a place.                else if (cmd.equals("close")) {                    if (arg.length() == 0)                       throw new IllegalArgumentException("direction expected");                    location.close(me, arg);                }                // LINK: Create a new exit that connects to an existing place                // that may be in another MUD running on another host                else if (cmd.equals("link")) {                    if (arg.length() == 0)                       throw new IllegalArgumentException("direction expected");                    String host = getLine("What host are you linking to?: ");                    String mud =			getLine("What is the name of the MUD on that host?: ");                    String place =			getLine("What is the place name in that MUD?: ");                    location.linkTo(me, arg, host, mud, place);                    System.out.println("Don't forget to make a link from " +				       "there back to here!");                }                // DUMP: Save the state of this MUD into the named file,                // if the password is correct                else if (cmd.equals("dump")) {                    if (arg.length() == 0)                        throw new IllegalArgumentException("filename expected");                    String password = getLine("Password: ");                    location.getServer().dump(password, arg);                }                // QUIT: Quit the game                else if (cmd.equals("quit")) {                    try { location.exit(me, myname + " has quit."); }                     catch (Exception e) {}                    System.out.println("Bye.");                    System.out.flush();                    System.exit(0);                }                // HELP: Print out a big help message                else if (cmd.equals("help")) System.out.println(help);                // Otherwise, this is an unrecognized command.                else System.out.println("Unknown command.  Try 'help'.");            }            // Handle the many possible types of MudException            catch (MudException e) {                if (e instanceof NoSuchThing)                     System.out.println("There isn't any such thing here.");                 else if (e instanceof NoSuchPerson)                    System.out.println("There isn't anyone by that name here.");                else if (e instanceof NoSuchExit)                   System.out.println("There isn't an exit in that direction.");                else if (e instanceof NoSuchPlace)                     System.out.println("There isn't any such place.");                 else if (e instanceof ExitAlreadyExists)                    System.out.println("There is already an exit " +				       "in that direction.");                else if (e instanceof PlaceAlreadyExists)                    System.out.println("There is already a place " +				       "with that name.");                else if (e instanceof LinkFailed)                    System.out.println("That exit is not functioning.");                else if (e instanceof BadPassword)                     System.out.println("Invalid password.");                 else if (e instanceof NotThere)      // Shouldn't happen                    System.out.println("You can't do that when " +				       "you're not there.");                 else if (e instanceof AlreadyThere)  // Shouldn't happen                    System.out.println("You can't go there; " +				       "you're already there.");            }            // Handle RMI exceptions            catch (RemoteException e) {               System.out.println("The MUD is having technical difficulties.");               System.out.println("Perhaps the server has crashed:");               System.out.println(e);            }            // Handle everything else that could go wrong.            catch (Exception e) {                System.out.println("Syntax or other error:");                System.out.println(e);                System.out.println("Try using the 'help' command.");            }        }    }        /**      * This convenience method is used in several places in the     * runMud() method above.  It displays the name and description of     * the current place (including the name of the mud the place is in),      * and also displays the list of things, people, and exits in     * the current place.     **/    public static void look(RemoteMudPlace p) 	throws RemoteException, MudException    {        String mudname = p.getServer().getMudName(); // Mud name        String placename = p.getPlaceName();         // Place name        String description = p.getDescription();     // Place description        Vector things = p.getThings();               // List of things here        Vector names = p.getNames();                 // List of people here        Vector exits = p.getExits();                 // List of exits from here        // Print it all out        System.out.println("You are in: " + placename +			   " of the Mud: " + mudname);        System.out.println(description);        System.out.print("Things here: ");        for(int i = 0; i < things.size(); i++) {      // Display list of things            if (i > 0) System.out.print(", ");            System.out.print(things.elementAt(i));        }        System.out.print("\nPeople here: ");        for(int i = 0; i < names.size(); i++) {       // Display list of people            if (i > 0) System.out.print(", ");            System.out.print(names.elementAt(i));        }        System.out.print("\nExits are: ");        for(int i = 0; i < exits.size(); i++) {       // Display list of exits            if (i > 0) System.out.print(", ");            System.out.print(exits.elementAt(i));        }        System.out.println();                         // Blank line        System.out.flush();                           // Make it appear now!    }        /** This static input stream reads lines from the console */    static BufferedReader in =	new BufferedReader(new InputStreamReader(System.in));        /**      * A convenience method for prompting the user and getting a line of      * input.  It guarantees that the line is not empty and strips off      * whitespace at the beginning and end of the line.     **/    public static String getLine(String prompt) {        String line = null;        do {                      // Loop until a non-empty line is entered            try {                System.out.print(prompt);             // Display prompt                System.out.flush();                   // Display it right away                line = in.readLine();                 // Get a line of input                if (line != null) line = line.trim(); // Strip off whitespace            } catch (Exception e) {}                // Ignore any errors        } while((line == null) || (line.length() == 0));        return line;    }        /**     * A convenience method for getting multi-line input from the user.     * It prompts for the input, displays instructions, and guarantees that     * the input is not empty.  It also allows the user to enter the name of     * a file from which text will be read.     **/    public static String getMultiLine(String prompt) {        String text = "";        for(;;) {  // We'll break out of this loop when we get non-empty input            try {                BufferedReader br = in;       // The stream to read from                 System.out.println(prompt);   // Display the prompt                // Display some instructions                System.out.println("You can enter multiple lines.  " + 				   "End with a '.' on a line by itself.\n" +				   "Or enter a '<<' followed by a filename");                // Make the prompt and instructions appear now.                System.out.flush();                // Read lines                String line;                while((line = br.readLine()) != null) {    // Until EOF                    if (line.equals(".")) break;  // Or until a dot by itself                    // Or, if a file is specified, start reading from it                     // instead of from the console.                    if (line.trim().startsWith("<<")) {                              String filename = line.trim().substring(2).trim();                        br = new BufferedReader(new FileReader(filename));                        continue;  // Don't count the << as part of the input                    }		    // Add the line to the collected input                    else text += line + "\n";                  }                // If we got at least one line, return it.  Otherwise, chastise                // the user and go back to the prompt and the instructions.                if (text.length() > 0) return text;                else System.out.println("Please enter at least one line.");            }            // If there were errors, for example an IO error reading a file,            // display the error and loop again, displaying prompt and            // instructions            catch(Exception e) { System.out.println(e); }        }    }    /** This is the usage string that explains the available commands */    static final String help = 	"Commands are:\n" + 	"look: Look around\n" +	"examine <thing>: examine the named thing in more detail\n" +	"describe <person>: describe the named person\n" +	"go <direction>: go in the named direction (i.e. a named exit)\n" +	"say <message>: say something to everyone\n" +	"do <message>: tell everyone that you are doing something\n" +	"talk <person>: talk to one person.  Will prompt for message\n" +	"change: change how you are described.  Will prompt for input\n" +	"create <thing>: create a new thing.  Prompts for description \n" +	"destroy <thing>: destroy a thing.\n" + 	"open <direction>: create an adjoining place. Prompts for input\n"+	"close <direction>: close an exit from this place.\n" +	"link <direction>: create an exit to an existing place,\n" +	"     perhaps on another server.  Will prompt for input.\n" +	"dump <filename>: save server state.  Prompts for password\n" +	"quit: leave the Mud\n" +	"help: display this message";}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av在线资源| 久久在线观看免费| 精品国产91久久久久久久妲己| 亚洲国产精品激情在线观看| 视频一区免费在线观看| a4yy欧美一区二区三区| 精品国产成人系列| 午夜视频一区在线观看| 91丨porny丨最新| 国产清纯美女被跳蛋高潮一区二区久久w| 亚洲一区二区三区四区不卡 | 久久九九久久九九| 日韩国产成人精品| 欧美午夜精品久久久久久超碰| 国产日韩三级在线| 国产美女视频91| 欧美一区二区大片| 视频在线观看一区| 欧美少妇xxx| 一区二区不卡在线视频 午夜欧美不卡在| 国产高清视频一区| 精品剧情在线观看| 久久99精品一区二区三区三区| 在线播放欧美女士性生活| 一区二区三区**美女毛片| av中文一区二区三区| 国产日韩欧美电影| 国产伦精品一区二区三区免费 | 久久久精品综合| 国产自产高清不卡| 精品国产一区久久| 激情综合网av| 国产日韩欧美一区二区三区综合| 韩国理伦片一区二区三区在线播放| 欧美色精品在线视频| 亚洲午夜激情网站| 欧美裸体一区二区三区| 日韩精品每日更新| 欧美一区二区久久| 黑人巨大精品欧美黑白配亚洲| 欧美tk丨vk视频| 黑人精品欧美一区二区蜜桃 | 一区二区三区产品免费精品久久75| www.亚洲免费av| 亚洲欧美日韩系列| 欧美色国产精品| 天堂成人免费av电影一区| 欧美一区二区三区视频在线 | 欧美性淫爽ww久久久久无| 日日夜夜精品视频天天综合网| 欧美精品国产精品| 狠狠色狠狠色综合| 亚洲视频 欧洲视频| 欧美亚洲高清一区| 久久精品99国产精品日本| 国产精品嫩草影院av蜜臀| 99re视频这里只有精品| 亚洲成在线观看| 精品国产三级a在线观看| 成人成人成人在线视频| 亚洲成人av在线电影| 精品区一区二区| 91在线观看污| 日韩电影一二三区| 国产欧美一区视频| 欧美自拍偷拍一区| 国产麻豆精品theporn| 亚洲卡通欧美制服中文| 日韩亚洲欧美一区二区三区| 不卡影院免费观看| 欧美aⅴ一区二区三区视频| 国产精品欧美久久久久无广告| 欧美色精品在线视频| 丰满亚洲少妇av| 性久久久久久久久| 国产精品成人免费精品自在线观看| 欧美色视频在线| 成人免费高清在线| 久久精品国产亚洲5555| 亚洲男人的天堂在线aⅴ视频| 日韩一级精品视频在线观看| 91视频国产资源| 国内成+人亚洲+欧美+综合在线| 一区二区三区精品视频在线| 国产欧美日韩在线观看| 日韩一卡二卡三卡四卡| 日本韩国一区二区三区| 国产一区二区成人久久免费影院 | 亚洲色欲色欲www| 精品国产乱码久久| 欧美日韩国产大片| 97aⅴ精品视频一二三区| 国产在线视频不卡二| 日韩在线一二三区| 亚洲一级在线观看| 亚洲免费av网站| 一区二区中文字幕在线| 久久久精品国产99久久精品芒果 | 91传媒视频在线播放| 国产成人在线观看免费网站| 另类小说欧美激情| 狠狠色丁香婷婷综合| 日本视频免费一区| 亚洲成人av中文| 午夜久久久久久久久久一区二区| 一区二区三区四区av| 亚洲少妇最新在线视频| 亚洲色欲色欲www在线观看| 国产精品久久久久aaaa| 亚洲欧洲性图库| 国产精品伦一区二区三级视频| 国产三级欧美三级| 国产日韩一级二级三级| 国产精品污网站| 国产精品三级av| 国产精品区一区二区三区| 国产精品久久久久aaaa| 亚洲啪啪综合av一区二区三区| 中文字幕一区二区三区乱码在线| 中文字幕高清不卡| 一区二区三区在线不卡| 一区二区三区日本| 亚洲国产成人va在线观看天堂| 日韩高清不卡在线| 麻豆91精品91久久久的内涵| 精品中文字幕一区二区小辣椒 | 欧美大片在线观看| 精品国产第一区二区三区观看体验| 亚洲精品在线免费播放| 国产精品女主播av| 一区二区三区日韩欧美精品 | 成人午夜视频网站| 一本到三区不卡视频| 欧美日韩一区二区三区在线| 日韩一区二区免费高清| 久久午夜电影网| 亚洲视频中文字幕| 日韩在线播放一区二区| 韩国v欧美v日本v亚洲v| 波多野结衣在线一区| 在线免费视频一区二区| 欧美xxxx在线观看| 综合色天天鬼久久鬼色| 午夜不卡在线视频| 国产精品乡下勾搭老头1| 91污片在线观看| 日韩视频免费观看高清完整版在线观看| 精品免费国产二区三区| 亚洲丝袜精品丝袜在线| 美腿丝袜亚洲三区| 色综合久久久久久久久| 91精品国产综合久久蜜臀| 欧美激情一区二区三区不卡 | 亚洲免费在线观看| 另类小说欧美激情| 91官网在线免费观看| 精品国产免费一区二区三区香蕉| 中文字幕视频一区二区三区久| 天天综合日日夜夜精品| 成人在线视频一区二区| 欧美一区二区三区视频免费播放| 中文字幕免费不卡| 秋霞影院一区二区| 色香蕉久久蜜桃| 久久久av毛片精品| 日韩精品一区第一页| 成人av资源在线| 欧美精品一区二区三区蜜桃| 亚洲国产精品一区二区www | 欧美日韩不卡一区二区| 中文在线一区二区| 韩国精品久久久| 欧美肥大bbwbbw高潮| 亚洲区小说区图片区qvod| 成人性生交大片免费| 欧美mv和日韩mv国产网站| 婷婷中文字幕综合| 欧美在线色视频| 综合在线观看色| 99久久免费视频.com| 国产日韩亚洲欧美综合| 国产一区二区三区四区五区美女 | 欧美三级欧美一级| 综合久久久久久久| 不卡视频在线看| 久久久久99精品国产片| 精彩视频一区二区三区| 在线综合视频播放| 一个色妞综合视频在线观看| 99re这里都是精品| 1000部国产精品成人观看| 粉嫩一区二区三区性色av| 久久九九99视频| 国产成人精品免费网站| 久久婷婷国产综合国色天香| 韩国精品在线观看| 久久久99精品免费观看| 国产91色综合久久免费分享| 久久九九久久九九| 成人激情午夜影院|