Package com.threerings.whirled.spot.data

Examples of com.threerings.whirled.spot.data.Location


            if (model == null) {
                errmsg = "No scene found in scene file '" + path + "'.";

            } else {
                SpotSceneModel ssmodel = SpotSceneModel.getSceneModel(model);
                Location defloc = null;
                // find the default entrance to this scene
                for (Portal port : ssmodel.portals) {
                    if (port.portalId == ssmodel.defaultEntranceId) {
                        defloc = port.getOppLocation();
                        break;
View Full Code Here


        public void begin (String namespace, String name, Attributes attrs)
            throws Exception
        {
            Portal portal = (Portal) digester.peek();
            Class<?> portalClass = portal.getClass();
            Location loc = portal.loc;
            Class<?> locClass = loc.getClass();

            // iterate over the attributes, setting public fields where applicable
            for (int ii = 0; ii < attrs.getLength(); ii++) {
                String lname = attrs.getLocalName(ii);
                if (StringUtil.isBlank(lname)) {
View Full Code Here

                "who", body.who(), "where", where());
            return;
        }

        try {
            Location eloc = scene.getDefaultEntrance().getLocation();
            handleChangeLoc(body, eloc);
        } catch (InvocationException ie) {
            log.warning("Could not move user to default portal",
                "where", where(), "who", body.who(), "error", ie);
        }
View Full Code Here

TOP

Related Classes of com.threerings.whirled.spot.data.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.