/* */ package NET.worlds.network; /* */ /* */ import NET.worlds.core.IniFile; /* */ import java.io.PrintStream; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class RoomServer /* */ extends AnonRoomServer /* */ { /* */ public synchronized void incRefCnt(Object referrer) /* */ { /* 105 */ super.incRefCnt(referrer); /* 106 */ startConnect(); /* */ } /* */ /* */ protected void state_Authprompt() /* */ { /* 111 */ this._state.setState(3); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ protected sessionInitCmd buildSessionInitCmd() /* */ { /* 129 */ OldPropertyList props = new OldPropertyList(); /* 130 */ String username = null; /* */ /* */ /* */ /* */ /* */ /* */ /* 137 */ props.addProperty(new netProperty(3, /* 138 */ String.valueOf(getVersion()))); /* 139 */ props.addProperty(new netProperty(9, /* 140 */ String.valueOf(this._clientVersion))); /* */ /* 142 */ this._firstLogon = this._galaxy.addPendingServer(this); /* */ /* 144 */ if (this._firstLogon) /* */ { /* */ /* 147 */ return null; /* */ } /* */ /* */ /* 151 */ int avatars = IniFile.gamma().getIniInt("avatars", 24); /* 152 */ props.addProperty(new netProperty(7, /* 153 */ Integer.toString(avatars))); /* */ /* */ /* 156 */ assert (this._galaxy.getChatname() != null); /* 157 */ username = this._galaxy.getChatname(); /* */ /* */ /* */ /* 161 */ regShortID(1, username); /* */ /* 163 */ props.addProperty(new netProperty(2, username)); /* */ /* 165 */ if ((this._galaxy.getLoginMode() != 3) && /* 166 */ (this._galaxy.getPassword() != null)) { /* 167 */ props.addProperty(new netProperty(6, this._galaxy /* 168 */ .getPassword())); /* */ } /* */ /* 171 */ if ((getDebugLevel() & 0x4) > 0) { /* 172 */ synchronized (System.out) { /* 173 */ System.out.println(this._serverURL.getHost() + /* 174 */ ": sending sessionInit."); /* 175 */ assert (username != null); /* 176 */ System.out.println(" username = \"" + username + "\""); /* 177 */ if (this._galaxy.getPassword() != null) { /* 178 */ System.out.println(" password = \"" + /* 179 */ this._galaxy.getPassword() + "\""); /* */ } /* */ } /* */ } /* 183 */ return new sessionInitCmd(props); /* */ } /* */ /* */ protected void state_Sleeping(int timeNow) /* */ { /* 188 */ if (getGalaxy().isActive()) /* */ { /* */ /* 191 */ super.state_Sleeping(timeNow); /* */ } /* */ else { /* 194 */ this._state.setState(0); /* */ } /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ void goOnline() /* */ { /* 240 */ this._requestOffline = false; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\RoomServer.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */