Package transientlibs.objects.primitives

Examples of transientlibs.objects.primitives.Int



    public TileEffect (int setType) {
        effect = Effects.effects.get(setType);
        //unitsLeft.value = 10;
        unitsLeft = new Int (10);
    }
View Full Code Here


    }

    public GameDate (){
      //  Log.info("New GameDate");
        for (int x = 0; x<6; x++) {
            timeValue[x] = new Int(0);
        }

        //Log.info("default GameDate");

        timeValue[SecondType].value = 0;
View Full Code Here

            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));

        }

        landmarkID = map.getObjectTileProperty(x, y, Detonator.INSTANCE.mapobjectsLayerCode, "tiletag", "-1");
        if (!"-1".equals(landmarkID)) {
View Full Code Here

        if (nowStr.equals("v")) {
           
            String setKey = analyst.getNextString().toLowerCase();
            int setValue = analyst.getNextNumber();
           
            lastLandmark().values.put(setKey, new Int(setValue));
        }
       
        if (nowStr.equals("eval")) {
           
            ReqList mainReqList = ReqList.lastReqList;
View Full Code Here

        }

        if (returnCustomIntValueIndex(nowStr) != -1) {
            nowStr2 = analyst.restOfRow();

            lastElement().customIntFields.put(nowStr, new Int(Integer.parseInt(nowStr2)));
            withResult = true;
        }

        if (returnCustomImageValueIndex(nowStr) != -1) {
            nowStr2 = analyst.getNextString();
View Full Code Here


        if (nowStr.equals("custom")) {
            String nextString = analyst.getNextString();
            int var = analyst.getNextNumber();
            lastCreature.customValues.put(nextString, new Int(var));

            withResult = true;
        }


        if (nowStr.equals("card")) {

            if (lastCreature.cards == null) {
                lastCreature.cards = new ArrayList<Cards>();
            }
            lastCreature.cards.add(Cards.getCardsByCode(analyst.getNextString()));
            withResult = true;
        }

        if (nowStr.equals("focussound")) {
            //lastCreature.focusSounds.add(Sounds.getSoundByCode(analyst.getNextString()));
            lastCreature.focusSounds.add(SoundsGDX.getSoundByCode(analyst.getNextString()));
            withResult = true;
        }

        if (nowStr.equals("ordersound")) {
            //lastCreature.orderSounds.add(Sounds.getSoundByCode(analyst.getNextString()));
            lastCreature.orderSounds.add(SoundsGDX.getSoundByCode(analyst.getNextString()));
            withResult = true;
        }


        if (nowStr.equals("equip")) {
            lastCreature.equippedItems.add(new Int(analyst.getBinding(Binding.itemBinding)));
            withResult = true;
        }


        if (nowStr.equals("group")) {
View Full Code Here

    public Int getValue(String ofKey) {
        if (values.containsKey(ofKey)) {
            return values.get(ofKey);
        } else {
            values.put(ofKey, new Int(0));
            Log.warn("No value with key " + ofKey);
            return values.get(ofKey);
        }
    }
View Full Code Here

TOP

Related Classes of transientlibs.objects.primitives.Int

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.