Consistent request->plan naming
This commit is contained in:
@@ -603,7 +603,7 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
}
|
||||
|
||||
/** @return a possible replacement for this block when placed in a line by the player. */
|
||||
public Block getReplacement(BuildPlan req, Seq<BuildPlan> requests){
|
||||
public Block getReplacement(BuildPlan req, Seq<BuildPlan> plans){
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -612,7 +612,7 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
|
||||
}
|
||||
|
||||
/** Mutates the given list of requests used during line placement. */
|
||||
/** Mutates the given list of plans used during line placement. */
|
||||
public void handlePlacementLine(Seq<BuildPlan> plans){
|
||||
|
||||
}
|
||||
|
||||
@@ -105,10 +105,10 @@ public class Conveyor extends Block implements Autotiler{
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block getReplacement(BuildPlan req, Seq<BuildPlan> requests){
|
||||
public Block getReplacement(BuildPlan req, Seq<BuildPlan> plans){
|
||||
if(junctionReplacement == null) return this;
|
||||
|
||||
Boolf<Point2> cont = p -> requests.contains(o -> o.x == req.x + p.x && o.y == req.y + p.y && (req.block instanceof Conveyor || req.block instanceof Junction));
|
||||
Boolf<Point2> cont = p -> plans.contains(o -> o.x == req.x + p.x && o.y == req.y + p.y && (req.block instanceof Conveyor || req.block instanceof Junction));
|
||||
return cont.get(Geometry.d4(req.rotation)) &&
|
||||
cont.get(Geometry.d4(req.rotation - 2)) &&
|
||||
req.tile() != null &&
|
||||
|
||||
@@ -112,10 +112,10 @@ public class Conduit extends LiquidBlock implements Autotiler{
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block getReplacement(BuildPlan req, Seq<BuildPlan> requests){
|
||||
public Block getReplacement(BuildPlan req, Seq<BuildPlan> plans){
|
||||
if(junctionReplacement == null) return this;
|
||||
|
||||
Boolf<Point2> cont = p -> requests.contains(o -> o.x == req.x + p.x && o.y == req.y + p.y && o.rotation == req.rotation && (req.block instanceof Conduit || req.block instanceof LiquidJunction));
|
||||
Boolf<Point2> cont = p -> plans.contains(o -> o.x == req.x + p.x && o.y == req.y + p.y && o.rotation == req.rotation && (req.block instanceof Conduit || req.block instanceof LiquidJunction));
|
||||
return cont.get(Geometry.d4(req.rotation)) &&
|
||||
cont.get(Geometry.d4(req.rotation - 2)) &&
|
||||
req.tile() != null &&
|
||||
|
||||
Reference in New Issue
Block a user