Initial reconstructor impl
This commit is contained in:
@@ -960,7 +960,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
}
|
||||
}
|
||||
|
||||
class PlaceLine{
|
||||
static class PlaceLine{
|
||||
public int x, y, rotation;
|
||||
public boolean last;
|
||||
}
|
||||
|
||||
@@ -139,17 +139,12 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
r1.setSize(req.block.size * tilesize);
|
||||
r1.setCenter(other.worldx() + req.block.offset(), other.worldy() + req.block.offset());
|
||||
|
||||
if(r2.overlaps(r1)){
|
||||
return req;
|
||||
}
|
||||
}else{
|
||||
r1.setSize(other.block().size * tilesize);
|
||||
r1.setCenter(other.worldx() + other.block().offset(), other.worldy() + other.block().offset());
|
||||
|
||||
if(r2.overlaps(r1)){
|
||||
return req;
|
||||
}
|
||||
}
|
||||
|
||||
if(r2.overlaps(r1)) return req;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public class Placement{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
closed.add(Point2.pack((int)next.x, (int)next.y));
|
||||
closed.add(Point2.pack(next.x, next.y));
|
||||
for(Point2 point : Geometry.d4){
|
||||
int newx = next.x + point.x, newy = next.y + point.y;
|
||||
Tile child = world.tile(newx, newy);
|
||||
|
||||
Reference in New Issue
Block a user