Examples of Landmark


Examples of javax.microedition.location.Landmark

            address.setField(AddressInfo.STATE, "Ontario");
            address.setField(AddressInfo.CITY, "Waterloo");
            address.setField(AddressInfo.STREET, _dataObject.getData());

            final Landmark[] landmark =
                    { new Landmark(_dataObject.getName(), null, null, address) };

            // Invoke the Maps application with the address in the data object
            Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments(
                    landmark));
        }
View Full Code Here

Examples of transientlibs.maps.entities.Landmark

    public Landmark produceLandmark(int landmarkID, int onX, int onY, TilelessMap onMap) {

        Log.info("Produce LM: " + Landmarks.getLandmarkByID(landmarkID).name() + " (" + landmarkID + ")");

        Landmark newLandmark;
        newLandmark = new Landmark(onX, onY, landmarkID, onMap);
        if (onMap != null) {
            onMap.placeLandmark(onX, onY, newLandmark);
        } else {
            Detonator.INSTANCE.landmarks.add(newLandmark);
        }
View Full Code Here

Examples of transientlibs.maps.entities.Landmark

    public GenericUnit produceUnit(String creatureCode, int onX, int onY, TilelessMap onMap) {
        return produceUnit(Binding.readBinding(Binding.creatureBinding, creatureCode), onX, onY, onMap);
    }

    public Landmark produceLandmark(String landmarkCode, int onX, int onY, TilelessMap onMap) {
        Landmark newLandmark = produceLandmark(Binding.readBinding(Binding.landmarkBinding, landmarkCode), onX, onY, onMap);
        newLandmark.calcImagePosition();
        return newLandmark;
    }
View Full Code Here

Examples of transientlibs.maps.entities.Landmark

    public void placeUnit(int x, int y, GenericUnit unit) {       
    }

    public void placeLandmark(int x, int y, int landmarkID) {
        placeLandmark(x, y, new Landmark(x, y, landmarkID, this));
    }
View Full Code Here

Examples of transientlibs.maps.entities.Landmark

    public void placeLandmark(int x, int y, int landmarkID) {
        placeLandmark(x, y, new Landmark(x, y, landmarkID, this));
    }

    public void placeLandmark(int x, int y, String landmarkCode) {
        placeLandmark(x, y, new Landmark(x, y, Binding.getBinding(Binding.landmarkBinding, landmarkCode), this));
    }
View Full Code Here

Examples of transientlibs.maps.entities.Landmark

        boolean skipFlag = false;

        PathFinder pathfinder = new PathFinder(fromCoords, this);

        Landmark bestLandmark = null;

        int bestResult = 999999999;


        if (fromLandmark != null) {
View Full Code Here

Examples of transientlibs.maps.entities.Landmark

        if (!"-".equals(landmarkID)) {

            Log.warn("ID: "+landmarkID);
           
            Landmark l = Detonator.INSTANCE.creatureFactory.produceLandmark(landmarkID, x, y, this);
            int dialogueID = Binding.getBinding(Binding.storyBinding, map.getObjectTileProperty(x, y, Detonator.INSTANCE.mapobjectsLayerCode, "dialogue", "-1"));
            l.customIntFields.put("dialogue", new Int (dialogueID));

        }
View Full Code Here

Examples of transientlibs.maps.entities.Landmark

            //Log.debug("adding item: " + ID);
        }

        if (ofType == placeLandmarkActivator) {
            //Log.info("EXPLODE "+ID);
            Landmark newLandmark = Detonator.INSTANCE.creatureFactory.produceLandmark(ID, value, value2, Detonator.INSTANCE.currentMap);
            newLandmark.bindValues();
        }



View Full Code Here

Examples of transientlibs.maps.entities.Landmark

            int coordX = analyst.getNextNumber();
            int coordY = analyst.getNextNumber();

            int setID = Binding.readBinding(Binding.landmarkBinding, analyst.getNextString());
           
            Landmark newLandmark = Detonator.INSTANCE.creatureFactory.produceLandmark(setID, coordX, coordY, null);
          
            newLandmark.bindValues();
            withResult = true;           
        }
       
        if ((nowStr.equals("landmark")) || (nowStr.equals("placelandmark"))) {
            //Log.info(nowStr);
            Log.info("SPAWN LANDMARK");
            Log.info(analyst.fullStr);

            int coordX = analyst.getNextNumber();
            int coordY = analyst.getNextNumber();

            int setID = Binding.readBinding(Binding.landmarkBinding, analyst.getNextString());

            Landmark newLandmark = Detonator.INSTANCE.creatureFactory.produceLandmark(setID, coordX, coordY, Maps.currentMap);

            //newLandmark = new Landmark(coordX, coordY, ID, Maps.currentMap);
            //Maps.currentMap.placeLandmark(coordX, coordY, newLandmark);

            newLandmark.bindValues();
            withResult = true;
        }


        if (nowStr.equals("placecreature")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.