Cleanup of TODOs

This commit is contained in:
Anuken 2018-11-24 08:21:22 -05:00
parent 6f5df6a671
commit 6bfd57097f
11 changed files with 2 additions and 13 deletions

View File

@ -68,7 +68,6 @@ public class DonationsActivity extends FragmentActivity{
Fragment fragment = fragmentManager.findFragmentByTag("donationsFragment");
if(fragment != null){
fragment.onActivityResult(requestCode, resultCode, data);
//TODO donation event, set settings?
}
}
}

View File

@ -21,7 +21,6 @@ import io.anuke.ucore.util.ThreadArray;
import static io.anuke.mindustry.Vars.*;
//TODO consider using quadtrees for finding specific types of blocks within an area
//TODO maybe use Arrays instead of ObjectSets?
/**Class used for indexing special target blocks for AI.*/
@SuppressWarnings("unchecked")

View File

@ -205,7 +205,6 @@ public class TurretBlocks extends BlockList implements ContentList{
}};
fuse = new ItemTurret("fuse"){{
//TODO make it use power
ammoTypes = new AmmoType[]{AmmoTypes.fuseShotgun};
reload = 50f;
shootShake = 4f;

View File

@ -175,7 +175,6 @@ public class MapView extends Element implements GestureListener{
public void clearStack(){
stack.clear();
//TODO clear und obuffer
}
public OperationStack getStack(){
@ -292,7 +291,6 @@ public class MapView extends Element implements GestureListener{
}
}
//todo is it really math.max?
float scaling = zoom * Math.min(width, height) / editor.getMap().width();
Draw.color(Palette.accent);

View File

@ -19,7 +19,6 @@ import io.anuke.ucore.util.Bundles;
import io.anuke.ucore.util.Log;
import io.anuke.ucore.util.Strings;
//TODO merge unit type with mech
public class UnitType extends UnlockableContent{
protected final Supplier<? extends BaseUnit> constructor;

View File

@ -30,7 +30,7 @@ public class TutorialSector{
new ItemMission(Items.copper, 100).setMessage("$tutorial.morecopper"),
new BlockMission(TurretBlocks.duo).setMessage("$tutorial.turret"),
//TODO fill turret with items mission
/
//new BlockMission(ProductionBlocks.mechanicalDrill).setMessage("$tutorial.drillturret"),
// Create a wave mission which spawns the core at 60, 60 rather than in the center of the map

View File

@ -30,7 +30,6 @@ public class Generation{
return tiles[x][y];
}
//TODO implement
Item drillItem(int x, int y, Drill block){
if(block.isMultiblock()){
Item result = null;

View File

@ -11,7 +11,6 @@ import io.anuke.ucore.graphics.Draw;
import io.anuke.ucore.scene.ui.layout.Table;
import io.anuke.ucore.util.Bundles;
//TODO merge unit type with mech
public class Mech extends UnlockableContent{
public final String name;
public final String description;

View File

@ -335,7 +335,6 @@ public class Block extends BaseBlock {
if(hasItems) stats.add(BlockStat.itemCapacity, itemCapacity, StatUnit.items);
}
//TODO make this easier to config.
public void setBars(){
if(hasPower) bars.add(new BlockBar(BarType.power, true, tile -> tile.entity.power.amount / powerCapacity));
if(hasLiquids)

View File

@ -45,8 +45,6 @@ public class Sorter extends Block implements SelectionTrait{
public void draw(Tile tile){
super.draw(tile);
//TODO call event for change
SorterEntity entity = tile.entity();
Draw.color(entity.sortItem.color);

View File

@ -42,7 +42,7 @@ public class Cultivator extends Drill{
stats.remove(BlockStat.drillTier);
stats.add(BlockStat.drillTier, table -> {
table.addImage("grass1").size(8 * 3).padBottom(3).padTop(3);
// TODO: find out localized name and add tool tip
table.add(Blocks.grass.formalName).padLeft(3);
});
}