Renamed Polygonal2DRegion.getMin/MaxY to getMinimum/MaximumY.

This commit is contained in:
TomyLobo 2012-01-03 04:44:34 +01:00
parent b96ef7b620
commit 7c71617dbf
2 changed files with 23 additions and 13 deletions

View File

@ -165,6 +165,15 @@ public class Polygonal2DRegion implements Region {
recalculate();
}
/**
* Get the minimum Y.
*
* @return min y
*/
public int getMininumY() {
return minY;
}
/**
* Set the minimum Y.
*
@ -177,7 +186,16 @@ public class Polygonal2DRegion implements Region {
}
/**
* Se the maximum Y.
* Get the maximum Y.
*
* @return max y
*/
public int getMaximumY() {
return maxY;
}
/**
* Set the maximum Y.
*
* @param y
*/
@ -597,12 +615,4 @@ public class Polygonal2DRegion implements Region {
public void setWorld(LocalWorld world) {
this.world = world;
}
public int getMinY() {
return minY;
}
public int getMaxY() {
return maxY;
}
}

View File

@ -124,18 +124,18 @@ public class Polygonal2DRegionSelector implements RegionSelector, CUIRegion {
session.dispatchCUIEvent(player, new SelectionShapeEvent(getTypeID()));
session.dispatchCUIEvent(player, new SelectionPoint2DEvent(0, pos, getArea()));
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMinY(), region.getMaxY()));
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMininumY(), region.getMaximumY()));
}
public void explainSecondarySelection(LocalPlayer player, LocalSession session, Vector pos) {
player.print("Added point #" + region.size() + " at " + pos + ".");
session.dispatchCUIEvent(player, new SelectionPoint2DEvent(region.size() - 1, pos, getArea()));
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMinY(), region.getMaxY()));
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMininumY(), region.getMaximumY()));
}
public void explainRegionAdjust(LocalPlayer player, LocalSession session) {
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMinY(), region.getMaxY()));
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMininumY(), region.getMaximumY()));
}
public BlockVector getPrimaryPosition() throws IncompleteRegionException {
@ -194,7 +194,7 @@ public class Polygonal2DRegionSelector implements RegionSelector, CUIRegion {
session.dispatchCUIEvent(player, new SelectionPoint2DEvent(id, points.get(id), getArea()));
}
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMinY(), region.getMaxY()));
session.dispatchCUIEvent(player, new SelectionMinMaxEvent(region.getMininumY(), region.getMaximumY()));
}
public void describeLegacyCUI(LocalSession session, LocalPlayer player) {