Commit 1441e7ec authored by mey's avatar mey
Browse files

AbstractDynamicMap.java: made extents final and removed potentially dangerous setters

parent 2c3378d1
......@@ -31,9 +31,9 @@ abstract class AbstractDynamicMap extends BasicMapChangeNotifier implements Name
/** Height of map. */
private final int height;
/** Horizontal extend when marking dirty. */
private int xExtend;
private final int xExtend;
/** Vertical extend when marking dirty. */
private int yExtend;
private final int yExtend;
/** Locations that have been modified and need to be updated. */
private final Set<Int2D> dirtySet = new HashSet<>();
......@@ -170,26 +170,6 @@ abstract class AbstractDynamicMap extends BasicMapChangeNotifier implements Name
notifyListeners(location.x, location.y);
}
/**
* Sets the horizontal extend when marking dirty.
*
* @param xExtend
* the new x extend
*/
public void setxExtend(int xExtend) {
this.xExtend = xExtend;
}
/**
* Sets the vertical extend when marking dirty.
*
* @param yExtend
* the new y extend
*/
public void setyExtend(int yExtend) {
this.yExtend = yExtend;
}
/**
* @param x
* @param y
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment