Examples of MapData


Examples of civquest.map.MapData

  }

  public void execute() {
    notifyBefore();

    MapData mapData = Game.getMapData();
    mapData.removeCity(cityID);

    forgetCityID();

    notifyAfter();
  }
View Full Code Here

Examples of civquest.map.MapData

  private abstract class BorderPainter {

    public void paintBorders(Coordinate coord, Graphics g) {

      Session session = quadMap.getSession();
      MapData mapData = Game.getMapData();
     
      FieldReader fieldReader = gameData.getFieldReader();
      if (fieldReader.isFieldOwnerAvailable(position)) {
        Long owner = fieldReader.getFieldOwner(position);

        if (owner == null) {
          return;
        }

        g.setColor(session.getNationColor(owner));

        Coordinate[] neighborCoords = position.getDirectNeighborCoords();

        for (Coordinate neighborPos : neighborCoords) {
          Coordinate adjustedNeighborPos
            = mapData.adjustToMapSize((Coordinate)neighborPos.clone());
          if (adjustedNeighborPos == null) {
            continue;
          }

          if (fieldReader.isFieldOwnerAvailable(adjustedNeighborPos)) {
View Full Code Here

Examples of civquest.map.MapData

  }

  public void execute() {
    notifyBefore();

    MapData mapData = Game.getMapData();
    Field field = mapData.getField(position);
    field.setPopulation(population);

    notifyAfter();
  }
View Full Code Here

Examples of civquest.map.MapData

  }

  public void execute() {
    notifyBefore();

    MapData mapData = Game.getMapData();
    Field field = mapData.getField(position);

    if (looseControl) {
      cityID = field.getRulingCity().getID();
      mapData.removeFieldFromCity(field, field.getRulingCity());
    } else {
      City city = mapData.getCity(cityID);
      mapData.assignFieldToCity(field, city);
    }

    notifyAfter();
  }
View Full Code Here

Examples of civquest.map.MapData

  }

  public void execute() {
    notifyBefore();

    MapData mapData = Game.getMapData();
    if (mapData.isMapObjectTimed(timedMO)) {
      TurnTimed mo = (TurnTimed)(mapData.getMapObject(timedMO));
      mo.setTime(time);
    } else {
      throw new ClassCastException("SetMapObjectTime must be feeded with"
                     + " the id of a MapObject implementing TurnTimed!!!");
    }
View Full Code Here

Examples of civquest.map.MapData

    notifyAfter();
  }

  public static GameChange constructSetTimeChange(Long timedMO, int time) {
    MapData mapData = Game.getMapData();
    if (mapData.isUnit(timedMO)) {
      return new SetUnitTime(timedMO, time);
    } else {
      return new SetMapObjectTime(timedMO, time);
    }
  }
View Full Code Here

Examples of net.minecraft.world.storage.MapData

                model.render(entityEquipped, 1, false, colour, glow);
                break;
            case FIRST_PERSON_MAP:
                EntityPlayer playerFirstPerson = (EntityPlayer) data[0];
                TextureManager engineFirstPerson = (TextureManager) data[1];
                MapData mapDataFirstPerson = (MapData) data[2];
                model.setPoseForPlayer(playerFirstPerson, itemStack);

                model.render(playerFirstPerson, 1, true, colour, glow);
                break;
            case EQUIPPED_FIRST_PERSON:
View Full Code Here

Examples of net.sf.laja.template.data.MapData

    return new MapDataRef(namespaces, templateTextWriter);
  }

  @Override
  public IMapData createMapData() {
    return new MapData(namespaces, templateTextWriter);
  }
View Full Code Here

Examples of net.sf.myway.map.bl.MapData

    try {
      final Digester d = createDigester();
      d.push(new OsmFactory(MapPlugin.getBL(), monitor));
      fetchDocument(monitor, d);
      monitor.worked(2);
      final MapData data = new MapData();
      final Map<String, MapNode> lookup = new HashMap<String, MapNode>();
      /*
       * monitor.setTaskName("Extract nodes"); List<MapNode> nodes = extractNodes(doc,
       * lookup); data.setNodes(nodes); monitor.worked(3);
       * monitor.setTaskName("Extract ways"); List<MapWay> ways = extractWays(doc, lookup);
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapData

  }

  @Override
  public void actionPerformed(ActionEvent e) {

    MapData mapData = data.getConversionResults().getMapData();

    VectorXZ camLookAt = mapData.getCenter();

    renderOptions.camera = new Camera();
    renderOptions.camera.setCamera(camLookAt.x, 1000, camLookAt.z-1000,
                                       camLookAt.x, 0, camLookAt.z);
   
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.