|
|
@ -9,6 +9,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
package engine.ai; |
|
|
|
package engine.ai; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import engine.gameManager.MovementManager; |
|
|
|
import engine.gameManager.SessionManager; |
|
|
|
import engine.gameManager.SessionManager; |
|
|
|
import engine.gameManager.ZoneManager; |
|
|
|
import engine.gameManager.ZoneManager; |
|
|
|
import engine.objects.Mob; |
|
|
|
import engine.objects.Mob; |
|
|
@ -37,7 +38,18 @@ public class MobileFSMManager { |
|
|
|
execution(); |
|
|
|
execution(); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
for (Zone zone : ZoneManager.getAllZones()) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Mob mob : zone.zoneMobSet) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
MovementManager.translocate(mob,mob.patrolPoints.get(0), null); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
Logger.error("Mob: " + mob.getName() + " UUID: " + mob.getObjectUUID() + " ERROR: " + e); |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
alive = true; |
|
|
|
alive = true; |
|
|
|
|
|
|
|
|
|
|
|
Thread t = new Thread(worker, "MobileFSMManager"); |
|
|
|
Thread t = new Thread(worker, "MobileFSMManager"); |
|
|
|