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

import com.flowpowered.math.vector.Vector2f;

import ecse321.fall2014.group3.bomberman.physics.entity.mob.Player;
import ecse321.fall2014.group3.bomberman.physics.entity.mob.enemy.Enemy;
import ecse321.fall2014.group3.bomberman.world.Map;

/**
 * The AI superclass.  Contains the float for conversion of the poll time from seconds to nanoseconds 
 *
 * @author 
 */
public abstract class AI {
    /**
    * Float used to convert the poll time from seconds to nanoseconds
    */
    protected static final float TO_SECS = 1e9f;
    
    /**
    * Returns a Vector2f that represents the next position of the Enemy
    * 
    * @param Enemy target
    * @param long dt
    * @param Map map
    * @param Player player
    * @return Vector2f The next position of the Enemy
    */
    public abstract Vector2f nextPosition(Enemy target, long dt, Map map, Player player);
}

@@ -317,89 +317,8 @@
 ass.
-  Contains the float for conversion of the poll time from seconds to nanoseconds 
 %0A *%0A
@@ -328,16 +328,27 @@
 @author 
+Lianna Yang
 %0A */%0Apub
@@ -426,16 +426,20 @@
 me from 
+nano
 seconds 
@@ -441,20 +441,16 @@
 onds to 
-nano
 seconds%0A
@@ -614,41 +614,93 @@
 ram 
-Enemy target%0A    * @param long dt
+target The enemy to apply the AI on%0A    * @param dt The time since the last AI update
 %0A   
@@ -709,23 +709,61 @@
  @param 
-Map map
+map The map in which the enemy and player are
 %0A    * @
@@ -768,29 +768,53 @@
  @param 
-P
+p
 layer 
+The 
 player
+, to chase if needed
 %0A    * @

Improve AI JD