Examples of TileTypes


Examples of settlers.game.DefaultGameEnums.TileTypes

  private static List<TileTypes> makeTileMap(
      Map<TileTypes, Integer> randomTiles, boolean[] isLand) {

    Random generator = new Random();
    TileTypes currentResource;

    List<TileTypes> tiles = new ArrayList<TileTypes>();

    for (int x = 0; x < isLand.length; x++) {
      if (isLand[x]) {
View Full Code Here

Examples of settlers.game.DefaultGameEnums.TileTypes

      if (SettlerMap.isIntersection(data.map.isOriginDown, location)) {

        // are there enough resources?
        Map<TileTypes, Integer> cost = getCost(type);
        Iterator<?> iterator = cost.keySet().iterator();
        TileTypes currentResource;

        while (iterator.hasNext()) {
          currentResource = (TileTypes) iterator.next();
          if (data.players.get(player).getResourceAmount(
              currentResource) < cost.get(currentResource)) {
View Full Code Here

Examples of settlers.game.DefaultGameEnums.TileTypes

  }

  public void removeResources(int player, Map<TileTypes, Integer> cost) {

    Iterator<?> iterator = cost.keySet().iterator();
    TileTypes currentResource;

    while (iterator.hasNext()) {
      currentResource = (TileTypes) iterator.next();
      data.players.get(player).removeResources(currentResource,
          cost.get(currentResource));
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.