Package mapwriter.region

Examples of mapwriter.region.Region


 
  public boolean loadRegion(RegionManager regionManager, int x, int z, int zoomLevel, int dimension) {
    //MwUtil.log("mapTexture.loadRegion %d %d %d %d", x, z, zoomLevel, dimension);
    boolean loaded = false;
    int index = this.getRegionIndex(x, z, zoomLevel);
    Region currentRegion = this.regionArray[index];
    if ((currentRegion == null) || (!currentRegion.equals(x, z, zoomLevel, dimension))) {
      Region newRegion = regionManager.getRegion(x, z, zoomLevel, dimension);
      this.regionArray[index] = newRegion;
      this.updateTextureFromRegion(
        newRegion, newRegion.x, newRegion.z, newRegion.size, newRegion.size
      );
      //regionManager.logInfo("regionArray[%d] = %s", index, newRegion);
View Full Code Here


    return loadedCount;
  }
 
  public void updateArea(RegionManager regionManager, int x, int z, int w, int h, int dimension) {
    for (int i = 0; i < this.regionArray.length; i++) {
      Region region = this.regionArray[i];
      if ((region != null) && (region.isAreaWithin(x, z, w, h, dimension))) {
        this.updateTextureFromRegion(region, x, z, w, h);
      }
    }
  }
View Full Code Here

TOP

Related Classes of mapwriter.region.Region

Copyright © 2018 www.massapicom. 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.