diff options
Diffstat (limited to 'NET/worlds/network/appInitCmd.java')
| -rw-r--r-- | NET/worlds/network/appInitCmd.java | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/NET/worlds/network/appInitCmd.java b/NET/worlds/network/appInitCmd.java new file mode 100644 index 0000000..60b4eb3 --- /dev/null +++ b/NET/worlds/network/appInitCmd.java @@ -0,0 +1,81 @@ +/* */ package NET.worlds.network; +/* */ +/* */ import java.io.PrintStream; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class appInitCmd +/* */ extends propCmd +/* */ { +/* */ public static final byte APPINITCMD = 8; +/* */ +/* */ public appInitCmd() +/* */ { +/* 46 */ this._commandType = 8; +/* */ } +/* */ +/* */ public appInitCmd(String s) +/* */ { +/* 51 */ this._commandType = 8; +/* 52 */ this._propList.addProperty(new netProperty(1, s)); +/* */ } +/* */ +/* */ void process(WorldServer serv) throws Exception +/* */ { +/* 57 */ assert (serv.getState() == 10); +/* 58 */ netProperty _error = this._propList.elementAt(0); +/* */ try { +/* 60 */ int errorval = Integer.parseInt(_error.value()); +/* 61 */ if (errorval != 0) +/* 62 */ throw new VarErrorException(errorval); +/* */ } catch (NumberFormatException e) { +/* 64 */ System.err.println("appInitCmd: couldn't parse VAR_ERROR = " + +/* 65 */ _error.value()); +/* */ +/* 67 */ serv.setState(11); +/* */ } +/* */ } +/* */ +/* */ public String toString(WorldServer serv) +/* */ { +/* 73 */ return "APPINIT " + this._propList; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\appInitCmd.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |