package NET.worlds.console; import NET.worlds.network.URL; import NET.worlds.scape.LoadedURLSelf; import NET.worlds.scape.URLSelf; import NET.worlds.scape.URLSelfLoader; class ConsoleLoader implements LoadedURLSelf { private LoadedURLSelf callback; public ConsoleLoader(URL url, LoadedURLSelf callback) { this.callback = callback; URLSelfLoader.load(url, this, true); } @Override public void loadedURLSelf(URLSelf o, URL url, String err) { Console c = (Console)o; if (err == null && c.pilot == null) { if (c.disableSingleUserAccess) { c.callbacks.addElement(this.callback); } else { c.initPilot(url, this.callback); } } else { this.callback.loadedURLSelf(o, url, err); } } }