Cleanup of TODOs
This commit is contained in:
@@ -68,7 +68,6 @@ public class DonationsActivity extends FragmentActivity{
|
|||||||
Fragment fragment = fragmentManager.findFragmentByTag("donationsFragment");
|
Fragment fragment = fragmentManager.findFragmentByTag("donationsFragment");
|
||||||
if(fragment != null){
|
if(fragment != null){
|
||||||
fragment.onActivityResult(requestCode, resultCode, data);
|
fragment.onActivityResult(requestCode, resultCode, data);
|
||||||
//TODO donation event, set settings?
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import io.anuke.ucore.util.ThreadArray;
|
|||||||
import static io.anuke.mindustry.Vars.*;
|
import static io.anuke.mindustry.Vars.*;
|
||||||
|
|
||||||
//TODO consider using quadtrees for finding specific types of blocks within an area
|
//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.*/
|
/**Class used for indexing special target blocks for AI.*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
|||||||
@@ -205,7 +205,6 @@ public class TurretBlocks extends BlockList implements ContentList{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
fuse = new ItemTurret("fuse"){{
|
fuse = new ItemTurret("fuse"){{
|
||||||
//TODO make it use power
|
|
||||||
ammoTypes = new AmmoType[]{AmmoTypes.fuseShotgun};
|
ammoTypes = new AmmoType[]{AmmoTypes.fuseShotgun};
|
||||||
reload = 50f;
|
reload = 50f;
|
||||||
shootShake = 4f;
|
shootShake = 4f;
|
||||||
|
|||||||
@@ -175,7 +175,6 @@ public class MapView extends Element implements GestureListener{
|
|||||||
|
|
||||||
public void clearStack(){
|
public void clearStack(){
|
||||||
stack.clear();
|
stack.clear();
|
||||||
//TODO clear und obuffer
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public OperationStack getStack(){
|
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();
|
float scaling = zoom * Math.min(width, height) / editor.getMap().width();
|
||||||
|
|
||||||
Draw.color(Palette.accent);
|
Draw.color(Palette.accent);
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import io.anuke.ucore.util.Bundles;
|
|||||||
import io.anuke.ucore.util.Log;
|
import io.anuke.ucore.util.Log;
|
||||||
import io.anuke.ucore.util.Strings;
|
import io.anuke.ucore.util.Strings;
|
||||||
|
|
||||||
//TODO merge unit type with mech
|
|
||||||
public class UnitType extends UnlockableContent{
|
public class UnitType extends UnlockableContent{
|
||||||
protected final Supplier<? extends BaseUnit> constructor;
|
protected final Supplier<? extends BaseUnit> constructor;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class TutorialSector{
|
|||||||
new ItemMission(Items.copper, 100).setMessage("$tutorial.morecopper"),
|
new ItemMission(Items.copper, 100).setMessage("$tutorial.morecopper"),
|
||||||
|
|
||||||
new BlockMission(TurretBlocks.duo).setMessage("$tutorial.turret"),
|
new BlockMission(TurretBlocks.duo).setMessage("$tutorial.turret"),
|
||||||
//TODO fill turret with items mission
|
/
|
||||||
//new BlockMission(ProductionBlocks.mechanicalDrill).setMessage("$tutorial.drillturret"),
|
//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
|
// Create a wave mission which spawns the core at 60, 60 rather than in the center of the map
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ public class Generation{
|
|||||||
return tiles[x][y];
|
return tiles[x][y];
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO implement
|
|
||||||
Item drillItem(int x, int y, Drill block){
|
Item drillItem(int x, int y, Drill block){
|
||||||
if(block.isMultiblock()){
|
if(block.isMultiblock()){
|
||||||
Item result = null;
|
Item result = null;
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import io.anuke.ucore.graphics.Draw;
|
|||||||
import io.anuke.ucore.scene.ui.layout.Table;
|
import io.anuke.ucore.scene.ui.layout.Table;
|
||||||
import io.anuke.ucore.util.Bundles;
|
import io.anuke.ucore.util.Bundles;
|
||||||
|
|
||||||
//TODO merge unit type with mech
|
|
||||||
public class Mech extends UnlockableContent{
|
public class Mech extends UnlockableContent{
|
||||||
public final String name;
|
public final String name;
|
||||||
public final String description;
|
public final String description;
|
||||||
|
|||||||
@@ -335,7 +335,6 @@ public class Block extends BaseBlock {
|
|||||||
if(hasItems) stats.add(BlockStat.itemCapacity, itemCapacity, StatUnit.items);
|
if(hasItems) stats.add(BlockStat.itemCapacity, itemCapacity, StatUnit.items);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO make this easier to config.
|
|
||||||
public void setBars(){
|
public void setBars(){
|
||||||
if(hasPower) bars.add(new BlockBar(BarType.power, true, tile -> tile.entity.power.amount / powerCapacity));
|
if(hasPower) bars.add(new BlockBar(BarType.power, true, tile -> tile.entity.power.amount / powerCapacity));
|
||||||
if(hasLiquids)
|
if(hasLiquids)
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ public class Sorter extends Block implements SelectionTrait{
|
|||||||
public void draw(Tile tile){
|
public void draw(Tile tile){
|
||||||
super.draw(tile);
|
super.draw(tile);
|
||||||
|
|
||||||
//TODO call event for change
|
|
||||||
|
|
||||||
SorterEntity entity = tile.entity();
|
SorterEntity entity = tile.entity();
|
||||||
|
|
||||||
Draw.color(entity.sortItem.color);
|
Draw.color(entity.sortItem.color);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public class Cultivator extends Drill{
|
|||||||
stats.remove(BlockStat.drillTier);
|
stats.remove(BlockStat.drillTier);
|
||||||
stats.add(BlockStat.drillTier, table -> {
|
stats.add(BlockStat.drillTier, table -> {
|
||||||
table.addImage("grass1").size(8 * 3).padBottom(3).padTop(3);
|
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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user