Examples of Booster


Examples of com.flaptor.hounder.crawler.modules.boost.Booster

        String valueString = mdlConfig.getString("boost.value");
        if ("constant".equals(valueString)) valueType = ABoostValue.Type.Constant;
        if ("attribute".equals(valueString)) valueType = ABoostValue.Type.Attribute;
        ABoostValue value = ABoostValue.getBoostValue(mdlConfig,valueType);

        booster = new Booster(condition,value,method);
    }
View Full Code Here

Examples of nl.nuggit.words.board.Booster

        Letter letter = language.getLetter(symbol);
        if (trayCopy.remove(symbol)) {
          // we place a matching tile
          tilesTakenFromTray++;
          word.getTiles().add(new Tile(letter));
          Booster booster = square.getBooster();
          letterValue = letter.getValue();
          if (booster != null) {
            letterValue = letterValue * booster.letterFactor();
            wordFactor = wordFactor * booster.wordFactor();
          }
        } else if (trayCopy.remove(Language.BLANK)) {
          // we place a blank tile
          tilesTakenFromTray++;
          word.getTiles().add(new Tile(new AppliedBlank(letter)));
View Full Code Here

Examples of nl.nuggit.words.board.Booster

      score += tile.getLetter().getValue();
    }

    // count the new tile, possibly with booster
    int letterValue = newTile.getLetter().getValue();
    Booster booster = line.getSquares()[position + wordIndex].getBooster();
    if (booster != null) {
      letterValue = letterValue * booster.letterFactor();
    }
    score += letterValue;

    if (booster != null) {
      score = score * booster.wordFactor();
    }
    String crossWord = sb.toString();
    boolean crossWordExists = language.getWords().contains(crossWord);
    if (crossWordExists) {
      word.setScore(word.getScore() + score);
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.