Package transientlibs.tex

Examples of transientlibs.tex.StringAnalyst


    public static SoundsGDX currentSound = null;

    public static void loadSounds() {
        boolean validFile = (new File(Detonator.INSTANCE.gameDataDir + "sound.dat")).exists();
        if (validFile) {
            StringAnalyst reader = new StringAnalyst();


            reader.openFile("sound.dat");

            while (!reader.eof) {


                reader.readRow();
                analyzeStringForSounds(reader);
            }

            reader.closeFile();
        }
    }
View Full Code Here


         Logger.getLogger(Fonts.class.getName()).log(Level.SEVERE, null, ex);
         }
         Log.info("Nowpath: "+path);
         */

        StringAnalyst reader = new StringAnalyst();
        reader.openGlobalFile("data/init/fonts.dat");

        while (!reader.eof) {
            reader.readRow();
            analyzeStringForFontss(reader);
        }

        reader.closeFile();

        Detonator.INSTANCE.fontProvider.setDefaultFonts();              
    }
View Full Code Here

    }

    public static void loadFonts() {


        StringAnalyst reader = new StringAnalyst();
        reader.openFile("fonts.dat");

        while (!reader.eof) {
            reader.readRow();
            analyzeStringForFontss(reader);
        }

        reader.closeFile();
    }
View Full Code Here

    }

    public static void loadMusic() {
        boolean validFile = (new File(Detonator.INSTANCE.gameDataDir + "music.dat")).exists();
        if (validFile) {
            StringAnalyst reader = new StringAnalyst();

            musicEnabled = Detonator.INSTANCE.getBindedTrigger("musicenabled");
            Detonator.INSTANCE.musicIsOn = Detonator.INSTANCE.getBindedTrigger("musicenabled");
            Detonator.INSTANCE.soundIsOn = Detonator.INSTANCE.getBindedTrigger("soundenabled");

            Log.info("Enable music: " + musicEnabled.value);



            reader.openFile("music.dat");

            while (!reader.eof) {

                reader.readRow();
                analyzeStringForMusics(reader);
            }

            reader.closeFile();
        }
    }
View Full Code Here

    public void loadFromFile(String theOne) {
        if (StringAnalyst.isFileExist(theOne)) {

            globalGroup = "";

            StringAnalyst reader = new StringAnalyst();

            reader.openFile(theOne);

            while (!reader.eof) {


                reader.readRow();
                analyzeString(reader);
            }

            reader.closeFile();
        }
    }
View Full Code Here

    public static void loadCombatEffect(String fromFile) {

        if (StringAnalyst.isFileExist(fromFile)) {

            StringAnalyst reader = new StringAnalyst();


            reader.openFile(fromFile);

            while (!reader.eof) {


                reader.readRow();
                analyzeStringForCombatEffects(reader);
            }

            reader.closeFile();
        }
    }
View Full Code Here

    }

    public static void loadText(String fromFile) {

        StringAnalyst reader = new StringAnalyst();

        reader.openFile(fromFile);

        while (!reader.eof) {
            reader.readRow();
            analyzeStringForTex(reader);
        }

        reader.closeFile();
    }
View Full Code Here

        reader.closeFile();
    }

    public static void loadGlobalText(String fromFile) {

        StringAnalyst reader = new StringAnalyst();

        reader.openGlobalFile(fromFile);

        while (!reader.eof) {
            reader.readRow();
            analyzeStringForTex(reader);
        }

        reader.closeFile();
    }
View Full Code Here

    public static void loadLooks() {

         if (StringAnalyst.isFileExist("looks.dat")) {

        StringAnalyst reader = new StringAnalyst();
        boolean withResult = false;

        reader.openFile("looks.dat");

        while (!reader.eof) {


            reader.readRow(); //reader.getNextString(); reader.getNextString();
            analyzeStringForLooks(reader);
        }

        //outputAll (lookTypes);
        //outputAll (looks.get(0));
        //outputAll (looks.get(1));
        //outputAll (looks.get(2));

        //outputAll (lookTypes);



        reader.closeFile();
         }
    }
View Full Code Here

    public static void loadTerrain() {

        if (StringAnalyst.isFileExist("terrain.dat")) {

            StringAnalyst reader = new StringAnalyst();


            reader.openFile("terrain.dat");

            while (!reader.eof) {


                reader.readRow();
                analyzeStringForTerrain(reader);

            }

            if (tileWidth == -1) {

                if (terrains.size() > 0) {

                    Log.warn("TERRAIN DAWG");
                    //tileWidth = terrains.get(0).image.image.getWidth();
                    //tileHeight = terrains.get(0).image.image.getHeight();

                    tileWidth = terrains.get(0).getWidth();
                    tileHeight = terrains.get(0).getHeight();                   
                }
            }

            reader.closeFile();
        }
    }
View Full Code Here

TOP

Related Classes of transientlibs.tex.StringAnalyst

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.