Misc cleanup
This commit is contained in:
@@ -26,9 +26,8 @@ public class PowerNode extends PowerBlock{
|
|||||||
protected static BuildPlan otherReq;
|
protected static BuildPlan otherReq;
|
||||||
protected static int returnInt = 0;
|
protected static int returnInt = 0;
|
||||||
protected final static ObjectSet<PowerGraph> graphs = new ObjectSet<>();
|
protected final static ObjectSet<PowerGraph> graphs = new ObjectSet<>();
|
||||||
|
|
||||||
/** The maximum range of all power nodes on the map */
|
/** The maximum range of all power nodes on the map */
|
||||||
public static float maxRange;
|
protected static float maxRange;
|
||||||
|
|
||||||
public @Load("laser") TextureRegion laser;
|
public @Load("laser") TextureRegion laser;
|
||||||
public @Load("laser-end") TextureRegion laserEnd;
|
public @Load("laser-end") TextureRegion laserEnd;
|
||||||
@@ -92,14 +91,12 @@ public class PowerNode extends PowerBlock{
|
|||||||
|
|
||||||
//clear old
|
//clear old
|
||||||
for(int i = 0; i < old.size; i++){
|
for(int i = 0; i < old.size; i++){
|
||||||
int cur = old.get(i);
|
configurations.get(Integer.class).get(tile, old.get(i));
|
||||||
configurations.get(Integer.class).get(tile, cur);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//set new
|
//set new
|
||||||
for(Point2 p : value){
|
for(Point2 p : value){
|
||||||
int newPos = Point2.pack(p.x + tile.tileX(), p.y + tile.tileY());
|
configurations.get(Integer.class).get(tile, Point2.pack(p.x + tile.tileX(), p.y + tile.tileY()));
|
||||||
configurations.get(Integer.class).get(tile, newPos);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user