Cleanup
This commit is contained in:
@@ -360,8 +360,8 @@ public class Tile implements Position, QuadTreeObject, Displayable{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of all tiles linked to this multiblock, or just itself if it's not a multiblock.
|
||||
* This array contains all linked tiles, including this tile itself.
|
||||
* Iterates through the list of all tiles linked to this multiblock, or just itself if it's not a multiblock.
|
||||
* The result contains all linked tiles, including this tile itself.
|
||||
*/
|
||||
public void getLinkedTiles(Cons<Tile> cons){
|
||||
if(block.isMultiblock()){
|
||||
@@ -391,7 +391,7 @@ public class Tile implements Position, QuadTreeObject, Displayable{
|
||||
|
||||
/**
|
||||
* Returns the list of all tiles linked to this multiblock if it were this block.
|
||||
* This array contains all linked tiles, including this tile itself.
|
||||
* The result contains all linked tiles, including this tile itself.
|
||||
*/
|
||||
public Seq<Tile> getLinkedTilesAs(Block block, Seq<Tile> tmpArray){
|
||||
tmpArray.clear();
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ForceProjector extends Block{
|
||||
public @Load("@-top") TextureRegion topRegion;
|
||||
|
||||
private static ForceProjectorEntity paramEntity;
|
||||
private static Cons<Shielderc> shieldConsumer = trait -> {
|
||||
private static final Cons<Shielderc> shieldConsumer = trait -> {
|
||||
if(trait.team() != paramEntity.team() && Intersector.isInsideHexagon(paramEntity.x, paramEntity.y, paramEntity.realRadius() * 2f, trait.x(), trait.y())){
|
||||
trait.absorb();
|
||||
Fx.absorb.at(trait);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class MassDriver extends Block{
|
||||
//check if a mass driver is selected while placing this driver
|
||||
if(!control.input.frag.config.isShown()) return;
|
||||
Building selected = control.input.frag.config.getSelectedTile();
|
||||
if(selected == null || !(selected.block() instanceof MassDriver) || !(selected.dst(x * tilesize, y * tilesize) <= range)) return;
|
||||
if(selected == null || !(selected.block() instanceof MassDriver) || !(selected.within(x * tilesize, y * tilesize, range))) return;
|
||||
|
||||
//if so, draw a dotted line towards it while it is in range
|
||||
float sin = Mathf.absin(Time.time(), 6f, 1f);
|
||||
|
||||
Reference in New Issue
Block a user