Examples of Bonus


Examples of game.slot.Bonus

      playerXStats.add(fours);
      Tuple fives = new Tuple(5, "Fives", 25);
      playerXStats.add(fives);
      Tuple sixes = new Tuple(6, "Sixes", 30);
      playerXStats.add(sixes);
      Bonus bonus = new Bonus(ones, twos, threes, fours, fives, sixes, "Upper bonus", 50);
      playerXStats.add(bonus);

      //Add the intermediate summing slot
      Sum intermediate = new Sum(1, "Intermediate sum", 105);
      playerXStats.add(intermediate);
View Full Code Here

Examples of game.slot.Bonus

   */
  public void updateSums(){
    for(ArrayList<AbstractScoreSlot> playerXStats : gameSheetContents){
      Sum intermediate = (Sum)playerXStats.get(INTERMEDIATE_SUM);
      Sum total = (Sum)playerXStats.get(TOTAL_SUM);
      Bonus bonus = (Bonus)playerXStats.get(UPPERSECTION_BONUS);

      intermediate.resetScoreSum();
      total.resetScoreSum();

      for(int i = 0; i < UPPERSECTION_END; i++){
        intermediate.addScoreToSlot(playerXStats.get(i).getSlotScore());
      }
     
      bonus.addScoreToSlot(null); //Check whether a bonus should be applied after updating the intermediate sum slot
     
      for(int i = 0; i < LOWER_SECTION_END; i++){
        if(i == INTERMEDIATE_SUM)continue;
        total.addScoreToSlot(playerXStats.get(i).getSlotScore());
      }
View Full Code Here

Examples of jbrickbreaker.model.bonuses.Bonus

    @Override
    public void drawElements(Graphics2D g) {
        // for (Bonus b : movingBonus)
        for (int i = 0; i < movingBonus.size(); i++) {
            Bonus b = movingBonus.get(i);
            if (b != null)
                b.draw(g);
        }
        pad.draw(g);
        // for (Ball b : balls){
        for (int i = 0; i < balls.size(); i++) {
            Ball b = balls.get(i);
            if (b != null)
                b.draw(g);
        }
        if (levels.size() > 0 && currentLevel < levels.size()) {
            List<Brick> bricks = levels.get(currentLevel).getBricks();
            for (Brick b : bricks)
                b.draw(g);
        }
    }
View Full Code Here

Examples of l2p.extensions.Bonus

    return _bonus;
  }

  public void restoreBonus()
  {
    _bonus = new Bonus(this);
  }
View Full Code Here

Examples of rtype.entity.Bonus

public class BonusFactory
{

  public static Bonus createBonus(int type)
  {
    Bonus b = null;
    switch(type)
    {
      case IEntity.BONUS_BOOSTER : b=  new BonusBooster() ; break;
      case IEntity.BONUS_LIGHTNING_ORB : b=  new BonusLightningOrb() ; break;
      case IEntity.BONUS_GRAVITY_ORB : b=  new BonusMagneticOrb() ; break;
View Full Code Here

Examples of rtype.entity.Bonus

     
      addBasicEntities();
     
      player1.addEventListeners();
     
      Bonus b = BonusFactory.createBonus(IEntity.BONUS_LIGHTNING_ORB);
      b.spawn(new Vector2f(player1.position.x+100,player1.position.y), DEFAULT_SCROLLING_SPEED, bonus);
     
     
      addControlKeys();
     
     
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.