Examples of addPoints()


Examples of com.jcloisterzone.Player.addPoints()

        assert pSelecting != pBidding || buy; //if same, buy is flag expected
        if (!buy) points *= -1;
        pSelecting.addPoints(-points, PointCategory.BAZAAR_AUCTION);
        if (pSelecting != pBidding) {
            pBidding.addPoints(points, PointCategory.BAZAAR_AUCTION);
        }

        bi.setOwner(buy ? pSelecting : pBidding);
        bi.setCurrentBidder(null);
        nextSelectingPlayer();
View Full Code Here

Examples of com.jcloisterzone.Player.addPoints()

        while (i.hasNext()) {
            Follower meeple = i.next();
            if (meepleType.isInstance(meeple)) {
                i.remove();
                meeple.clearDeployment();
                opponent.addPoints(RANSOM_POINTS, PointCategory.TOWER_RANSOM);
                ransomPaidThisTurn = true;
                game.getActivePlayer().addPoints(-RANSOM_POINTS, PointCategory.TOWER_RANSOM);
                game.post(new MeeplePrisonEvent(meeple, opponent, null));
                game.getPhase().notifyRansomPaid();
                return;
View Full Code Here

Examples of com.jcloisterzone.Player.addPoints()

            rosePosition = tile.getPosition();
        } else {
            rose = rose.rotateCW(roseRotation);
            if (isInProperQuadrant(rose, tile.getPosition())) {
                Player p = game.getActivePlayer();
                p.addPoints(WIND_ROSE_POINTS, PointCategory.WIND_ROSE);
                game.post(new ScoreEvent(tile.getPosition(), p, WIND_ROSE_POINTS, PointCategory.WIND_ROSE));
            }
        }
    }
View Full Code Here

Examples of de.linwave.tutorial.Pilot.addPoints()

  }

  public void testUpdatePilot() {
    ObjectSet<Pilot> result = db.queryByExample(new Pilot("Michael Schumacher", 0));
    Pilot found = (Pilot) result.next();
    found.addPoints(11);
    int newPoints = found.getPoints();
    db.store(found);
    System.out.println("Added 11 points for " + found);
    testRetrieveAllPilots();
   
View Full Code Here

Examples of games.stendhal.server.maps.deathmatch.DeathmatchState.addPoints()

      // set the DM points score only for the player who started the DM
      if (killerName.equals(playerName)) {
        points = (int) (killer.getLevel()
          * ((float) damageDone / (float) totalDamageReceived));
        final DeathmatchState deathmatchState = DeathmatchState.createFromQuestString(killer.getQuest("deathmatch"));
        deathmatchState.addPoints(points);
        killer.setQuest("deathmatch", deathmatchState.toQuestString());
      }
     
      // For some quests etc., it is required that the player kills a
      // certain creature without the help of others.
View Full Code Here

Examples of gml4u.model.GmlStroke.addPoints()

   
    // Get points
    List<Element> points = element.getChildren("pt");
    List<GmlPoint> gmlPoints = getGmlPoints(points);

    gmlStroke.addPoints(gmlPoints);
    return gmlStroke;
  }

  /**
   * Returns a list of GmlPoints from a list of point elements
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefPlayer.addPoints()

      AutoRefMatch match = plugin.getMatch(player.getWorld());
      if (match == null || !match.getCurrentState().inProgress()) return;

      AutoRefPlayer apl = match.getPlayer((Player) player);
      AchievementPoints ach = AchievementPoints.getEquipmentCraft(type);
      if (apl != null) apl.addPoints(ach, crafted / this.size);
    }
  }

  @EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled=true)
  public void itemCraft(CraftItemEvent event)
View Full Code Here

Examples of org.onebusaway.transit_data_federation.model.ShapePointsFactory.addPoints()

  @Override
  public ShapePoints getShapePointsForShapeIds(List<AgencyAndId> shapeIds) {
    ShapePointsFactory factory = new ShapePointsFactory();
    for (AgencyAndId shapeId : shapeIds) {
      ShapePoints shapePoints = getShapePointsForShapeId(shapeId);
      factory.addPoints(shapePoints);
    }
    return factory.create();
  }
}
View Full Code Here

Examples of org.springmodules.db4o.examples.Pilot.addPoints()

  }

  public static void updatePilot(ObjectContainer db) {
    ObjectSet result = db.get(new Pilot("Michael Schumacher", 0));
    Pilot found = (Pilot) result.next();
    found.addPoints(11);
    db.set(found);
    System.out.println("Added 11 points for " + found);
    retrieveAllPilots(db);
  }
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.