package ecse321.fall2014.group3.bomberman.physics.ai;

import com.flowpowered.math.vector.Vector2f;

import ecse321.fall2014.group3.bomberman.physics.entity.mob.Mob;
import ecse321.fall2014.group3.bomberman.world.Map;

/**
 *
 */
public class DumbAI extends AI {
    public DumbAI(Mob target) {
        super(target);
    }

    @Override
    public Vector2f nextPosition(long dt, Map map) {
        if((target.getTileCollisionList()).isEmpty())
            return (target.getPosition() + target.getVelocity()*dt);
        else {
            Random random = new Random();
            switch(random.nextInt(3)) {
            case 0:
                return (target.getPosition() + target.getVelocity()*dt).negate();
                break;
            case 1:
                return (target.getPosition() + target.getVelocity()*dt).getPerpendicular();
                break;
            case 2:
                return (target.getPosition() + target.getVelocity()*dt).getPerpendicular().negate(); 
                break; 
            }  
        }
    }
}

@@ -397,508 +397,68 @@
     
-if((target.getTileCollisionList()).isEmpty())%0A            return (target.getPosition() + target.getVelocity()*dt);%0A        else %7B%0A            Random random = new Random();%0A            switch(random.nextInt(3)) %7B%0A            case 0:%0A                return (target.getPosition() + target.getVelocity()*dt).negate();%0A                break;%0A            case 1:%0A                return (target.getPosition() + target.getVelocity()*dt).getPerpendicular();%0A                break;%0A            case 2:%0A        
+// TODO implement me, for now just return the same position%0A
     
@@ -468,17 +468,16 @@
  return 
-(
 target.g
@@ -492,115 +492,9 @@
 on()
- + target.getVelocity()*dt).getPerpendicular().negate(); %0A                break; %0A            %7D  %0A        %7D
+;
 %0A   

Remove broken AI code: doesn't compile