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

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

?? mud.java

?? Examples From Java Examples in a Nutshell, 2nd Edition 書中的源碼
?? JAVA
字號:
/* * Copyright (c) 2000 David Flanagan.  All rights reserved. * This code is from the book Java Examples in a Nutshell, 2nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-commercial purpose. * You may distribute it non-commercially as long as you retain this notice. * For a commercial use license, or to purchase the book (recommended), * visit http://www.davidflanagan.com/javaexamples2. */package com.davidflanagan.examples.rmi;import java.rmi.*;import java.util.Vector;import java.io.IOException;/** * This class defines three nested Remote interfaces for use by our MUD game. * It also defines a bunch of exception subclasses, and a constant string * prefix used to create unique names when registering MUD servers **/public class Mud {    /**     * This interface defines the exported methods of the MUD server object     **/    public interface RemoteMudServer extends Remote {        /** Return the name of this MUD */        public String getMudName() throws RemoteException;	        /** Return the main entrance place for this MUD */        public RemoteMudPlace getEntrance() throws RemoteException; 	        /** Look up and return some other named place in this MUD */        public RemoteMudPlace getNamedPlace(String name) 	    throws RemoteException, NoSuchPlace;	        /** 	 * Dump the state of the server to a file so that it can be restored	 * later All places, and their exits and things are dumped, but the	 * "people" in them are not.	 **/        public void dump(String password, String filename) 	    throws RemoteException, BadPassword, IOException;    }        /**     * This interface defines the methods exported by a "person" object that     * is in the MUD.     **/    public interface RemoteMudPerson extends Remote {        /** Return a full description of the person */        public String getDescription() throws RemoteException;	        /** Deliver a message to the person */        public void tell(String message) throws RemoteException;    }        /**     * This is the most important remote interface for the MUD.  It defines the     * methods exported by the "places" or "rooms" within a MUD.  Each place     * has a name and a description, and also maintains a list of "people" in     * the place, things in the place, and exits from the place.  There are     * methods to get a list of names for these people, things, and exits.     * There are methods to get the RemoteMudPerson object for a named person,     * to get a description of a named thing, and to go through a named exit.     * There are methods for interacting with other people in the MUD.  There     * are methods for building the MUD by creating and destroying things,     * adding new places (and new exits to those places), for linking a place     * through a new exit to some other place (possibly on another MUD server),     * and for closing down an existing exit.     **/    public interface RemoteMudPlace extends Remote {        /** Look up the name of this place */        public String getPlaceName() throws RemoteException;	        /** Get a description of this place */        public String getDescription() throws RemoteException;	        /** Find out the names of all people here */        public Vector getNames() throws RemoteException;	        /** Get the names of all things here */        public Vector getThings() throws RemoteException;	        /** Get the names of all ways out of here */        public Vector getExits() throws RemoteException;	        /** Get the RemoteMudPerson object for the named person. */        public RemoteMudPerson getPerson(String name) 	    throws RemoteException, NoSuchPerson;	        /** Get more details about a named thing */        public String examineThing(String name)	    throws RemoteException,NoSuchThing;	        /** Use the named exit */        public RemoteMudPlace go(RemoteMudPerson who, String direction) 	    throws RemoteException,NotThere,AlreadyThere,NoSuchExit,LinkFailed;	        /** Send a message of the form "David: hi everyone" */        public void speak(RemoteMudPerson speaker, String msg) 	    throws RemoteException, NotThere;	        /** Send a message of the form "David laughs loudly" */        public void act(RemoteMudPerson speaker, String msg) 	    throws RemoteException, NotThere;	        /** Add a new thing in this place */        public void createThing(RemoteMudPerson who, String name, 				String description) 	    throws RemoteException, NotThere, AlreadyThere;	        /** Remove a thing from this place */        public void destroyThing(RemoteMudPerson who, String thing) 	    throws RemoteException, NotThere, NoSuchThing;	        /**	 * Create a new place, bi-directionally linked to this one by an exit	 **/        public void createPlace(RemoteMudPerson creator, 				String exit, String entrance,				String name, String description) 	    throws RemoteException,NotThere,		   ExitAlreadyExists,PlaceAlreadyExists;        /** 	 * Link this place (unidirectionally) to some existing place.  The	 * destination place may even be on another server.	 **/        public void linkTo(RemoteMudPerson who, String exit, 			   String hostname, String mudname, String placename) 	    throws RemoteException, NotThere, ExitAlreadyExists, NoSuchPlace;	        /** Remove an existing exit */        public void close(RemoteMudPerson who, String exit) 	    throws RemoteException, NotThere, NoSuchExit;	        /** 	 * Remove this person from this place, leaving them nowhere.	 * Send the specified message to everyone left in the place.	 **/        public void exit(RemoteMudPerson who, String message) 	    throws RemoteException, NotThere;	        /**	 * Put a person in a place, assigning their name, and sending the 	 * specified message to everyone else in the place.  The client should	 * not make this method available to the user.  They should use go()	 * instead.	 **/        public void enter(RemoteMudPerson who, String name, String message) 	    throws RemoteException, AlreadyThere;	        /** 	 * Return the server object of the MUD that "contains" this place 	 * This method should not be directly visible to the player	 **/        public RemoteMudServer getServer() throws RemoteException;    }        /**     * This is a generic exception class that serves as the superclass     * for a bunch of more specific exception types      **/    public static class MudException extends Exception {}        /**     * These specific exception classes are thrown in various contexts.     * The exception class name contains all the information about the      * exception; no detail messages are provided by these classes.     **/    public static class NotThere extends MudException {}    public static class AlreadyThere extends MudException {}    public static class NoSuchThing extends MudException {}    public static class NoSuchPerson extends MudException {}    public static class NoSuchExit extends MudException {}    public static class NoSuchPlace extends MudException {}    public static class ExitAlreadyExists extends MudException {}    public static class PlaceAlreadyExists extends MudException {}    public static class LinkFailed extends MudException {}    public static class BadPassword extends MudException {}        /**     * This constant is used as a prefix to the MUD name when the server     * registers the mud with the RMI Registry, and when the client looks      * up the MUD in the registry.  Using this prefix helps prevent the      * possibility of name collisions.     **/    static final String mudPrefix = "com.davidflanagan.examples.rmi.Mud.";}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
大桥未久av一区二区三区中文| 午夜欧美视频在线观看| 久久99国产精品麻豆| 久久综合色鬼综合色| 国产福利91精品| 一区二区三区在线观看动漫| 欧美一区二区三区免费观看视频 | 久久你懂得1024| av不卡在线播放| 免费在线观看成人| 国产精品高潮久久久久无| 欧美电影在哪看比较好| 成人免费高清在线观看| 国产91精品精华液一区二区三区| 亚洲成人动漫一区| 亚洲国产经典视频| 日韩久久精品一区| 欧美在线一区二区三区| 国产成人在线视频网站| 成人开心网精品视频| 99久久久精品免费观看国产蜜| 日韩av网站免费在线| 亚洲乱码日产精品bd| 国产人伦精品一区二区| 日韩欧美在线影院| 精品视频999| 97se狠狠狠综合亚洲狠狠| 一本色道久久加勒比精品| 国产成人精品免费看| 成人av一区二区三区| 国产乱对白刺激视频不卡| 丝袜美腿亚洲一区二区图片| 亚洲美女在线一区| 中文字幕一区二区不卡| 久久久久国产精品厨房| 中文字幕亚洲区| 午夜精品久久久| 国产剧情在线观看一区二区| 91色在线porny| 91视频观看视频| 日韩丝袜情趣美女图片| 国产精品美女久久久久aⅴ| 国产精品视频免费看| 亚洲午夜精品久久久久久久久| 亚洲美女偷拍久久| 美国欧美日韩国产在线播放| 日本中文在线一区| 成人av动漫在线| 日韩欧美一区在线| 亚洲日本在线视频观看| 国产精品久久久久久久久免费樱桃| 亚洲综合久久av| 日韩影视精彩在线| av动漫一区二区| 久久午夜电影网| 婷婷综合久久一区二区三区| av资源网一区| 久久综合视频网| 天天综合日日夜夜精品| 国产传媒欧美日韩成人| 欧美在线制服丝袜| 亚洲人一二三区| 国产一区二区三区久久悠悠色av| 顶级嫩模精品视频在线看| 精品视频资源站| 亚洲天堂av一区| 国产91在线观看| 欧美成人艳星乳罩| 中文字幕巨乱亚洲| 国产精品99久久久久久宅男| 欧美精品第1页| 偷拍日韩校园综合在线| 91高清在线观看| 欧美zozozo| 久久超级碰视频| 成人福利视频网站| 国产亚洲精品福利| 性欧美疯狂xxxxbbbb| 91偷拍与自偷拍精品| www激情久久| 蜜桃视频一区二区三区在线观看| 欧美夫妻性生活| 亚洲综合在线五月| 成人久久18免费网站麻豆| 7777精品伊人久久久大香线蕉 | 在线电影一区二区三区| 精品少妇一区二区三区免费观看 | 国产91清纯白嫩初高中在线观看| 欧美性猛交xxxx乱大交退制版| 色综合久久久久久久久| 精品入口麻豆88视频| 亚洲一区二区三区小说| 成人h版在线观看| 欧美一区2区视频在线观看| 亚洲精品综合在线| 福利一区福利二区| 欧美白人最猛性xxxxx69交| 五月综合激情网| 91亚洲大成网污www| 中文字幕一区二区三区在线观看| aaa欧美大片| 亚洲一线二线三线视频| 欧美电影免费观看高清完整版 | 成人av在线资源网站| 亚洲欧美激情小说另类| 69久久99精品久久久久婷婷 | 成人国产精品免费观看视频| 18欧美乱大交hd1984| 欧美综合久久久| 麻豆久久一区二区| 成人免费在线观看入口| 91精品午夜视频| 成人一区二区三区视频在线观看 | 日韩精品一区二区三区老鸭窝| 成人综合在线观看| 亚洲一区二区成人在线观看| 精品日韩一区二区三区| 色婷婷国产精品久久包臀| 蜜芽一区二区三区| 欧美国产日韩精品免费观看| 欧美精品成人一区二区三区四区| 粗大黑人巨茎大战欧美成人| 日本亚洲欧美天堂免费| 18成人在线视频| 久久久亚洲综合| 欧美剧在线免费观看网站| 国产剧情一区二区| 婷婷国产在线综合| 亚洲天堂网中文字| 亚洲国产高清不卡| 日韩视频中午一区| 欧美日韩色一区| 99免费精品视频| 国内不卡的二区三区中文字幕| 欧美xxxxx裸体时装秀| 欧美性生交片4| 97精品久久久久中文字幕| 国内精品久久久久影院薰衣草| 亚洲高清视频在线| 中文字幕一区二区三区在线观看| 久久女同互慰一区二区三区| 欧美一级二级三级乱码| 欧美亚洲一区二区在线观看| 成人美女在线观看| 国产69精品一区二区亚洲孕妇| 蜜臀99久久精品久久久久久软件| 香蕉久久一区二区不卡无毒影院| 国产精品久久毛片| 久久久不卡网国产精品二区| 欧美一级专区免费大片| 欧美日韩精品免费| 风流少妇一区二区| 国产乱子伦视频一区二区三区| 日韩精品视频网站| 日本在线观看不卡视频| 日韩和欧美一区二区三区| 亚洲第一久久影院| 激情综合色播激情啊| 日本在线不卡视频一二三区| 午夜视频在线观看一区| 天天色图综合网| 日本特黄久久久高潮| 免费在线看成人av| 精品一区二区在线视频| 伦理电影国产精品| 国内一区二区视频| 国产成人亚洲综合a∨猫咪| 成人精品视频一区二区三区尤物| 成人国产精品免费观看视频| 99精品黄色片免费大全| 91福利区一区二区三区| 欧美精三区欧美精三区| 日韩亚洲欧美中文三级| 精品国产91乱码一区二区三区 | 日韩欧美一级在线播放| 精品乱人伦一区二区三区| 精品成人一区二区三区四区| 久久亚洲综合色一区二区三区| 国产午夜精品久久| 亚洲欧洲日产国码二区| 亚洲丰满少妇videoshd| 麻豆中文一区二区| 成人动漫一区二区| 欧美日本韩国一区二区三区视频| 精品欧美一区二区久久 | 亚洲免费看黄网站| 偷拍亚洲欧洲综合| 成人在线综合网| 欧美猛男超大videosgay| 精品久久久影院| 亚洲欧洲中文日韩久久av乱码| 亚洲v中文字幕| 国产精品一级在线| 欧美日韩中文国产| 久久久久久久网| 亚洲成人av福利| 国产精品一级二级三级| 欧美日韩精品一区二区在线播放| 久久久亚洲精品石原莉奈 | 日韩午夜中文字幕|