Removed and added many TODOs

This commit is contained in:
Anuken
2018-01-09 18:02:37 -05:00
parent 9c48ab1128
commit c6dfe1775e
21 changed files with 14 additions and 89 deletions

View File

@@ -1,7 +1,5 @@
package io.anuke.mindustry.entities;
import static io.anuke.mindustry.Vars.tilesize;
import io.anuke.mindustry.Vars;
import io.anuke.mindustry.world.Tile;
import io.anuke.ucore.entities.BulletEntity;
@@ -9,6 +7,8 @@ import io.anuke.ucore.entities.Entity;
import io.anuke.ucore.entities.SolidEntity;
import io.anuke.ucore.util.Mathf;
import static io.anuke.mindustry.Vars.tilesize;
public class Bullet extends BulletEntity{
BulletType type;
@@ -39,7 +39,6 @@ public class Bullet extends BulletEntity{
targetEntity = tile.entity;
}else{
//make sure to check for linked block collisions
//TODO move this to the block class?
Tile linked = tile.getLinked();
if(linked != null &&
linked.entity != null && linked.entity.collide(this) && !linked.entity.dead){

View File

@@ -20,7 +20,6 @@ public class Shield extends Entity{
private float uptime = 0f;
private final Tile tile;
//TODO
public Shield(Tile tile){
this.tile = tile;

View File

@@ -63,7 +63,6 @@ public class TeslaOrb extends Entity{
}
void damageEnemy(Enemy enemy){
//TODO
enemy.damage(damage);
Effects.effect(Fx.laserhit, enemy.x + Mathf.range(2f), enemy.y + Mathf.range(2f));
}

View File

@@ -36,7 +36,7 @@ public class FortressType extends EnemyType {
if(Timers.get(this, "spawn", spawnTime) && enemy.spawned < maxSpawn){
Angles.translation(enemy.angle, 20f);
Enemy s = new Enemy(EnemyTypes.fast); //TODO assign type!
Enemy s = new Enemy(EnemyTypes.fast);
s.lane = enemy.lane;
s.tier = enemy.tier;
s.spawner = enemy;