Package parserTXT

Examples of parserTXT.Token


    //512,biscoitoGengibre,biscoitoGengibre,0,50,25,1,,,,,,2,,,0,,{ itemheal 25,0; },{}
    Script uso = new Script();
    Script eqp = new Script();
    Comando cmd = new Comando();
    cmd.addToken( new Token(TipoToken.CMD, "itemheal") );
    cmd.addToken( new Token(TipoToken.NUM, "25") );
    cmd.addToken( new Token(TipoToken.NUM, "0") );
    uso.addComando(cmd);
    Object[] item1 = {"512", "biscoitoGengibre", "biscoitoGengibre" , "0", "50", "25" , "1", "", "", "", "", "", "2", "", "", "0", "", uso, eqp};

    //3046,verdadeiroTrevo,Verdadeiro Trevo,5,50000,25000,10,,,,5,0,2,8,,0,0,{},{ bonus bLuk, 10; bonus bMdef, 25; }
    uso = new Script();
    eqp = new Script();
    cmd = new Comando();
    cmd.addToken( new Token(TipoToken.CMD, "bonus") );
    cmd.addToken( new Token(TipoToken.VAR, "bLuk") );
    cmd.addToken( new Token(TipoToken.NUM, "10") );
    eqp.addComando(cmd);
    cmd = new Comando();
    cmd.addToken( new Token(TipoToken.CMD, "bonus") );
    cmd.addToken( new Token(TipoToken.VAR, "bMdef") );
    cmd.addToken( new Token(TipoToken.NUM, "25") );
    eqp.addComando(cmd);
    Object[] item2 = {"3046", "verdadeiroTrevo", "Verdadeiro Trevo", "5", "50000", "25000", "10", "", "", "", "5", "0", "2", "8", "", "0", "0", uso, eqp};

    parser.addItem(new Item(item1));
    parser.addItem(new Item(item2));
View Full Code Here

TOP

Related Classes of parserTXT.Token

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.