Ai Players

This commit is contained in:
2025-02-10 19:34:26 -06:00
parent 8ce1054599
commit d76403a0c8
3 changed files with 16 additions and 4 deletions
+7
View File
@@ -9,6 +9,8 @@
package engine.workthreads;
import engine.AiPlayers.AiPlayer;
import engine.AiPlayers.AiPlayerManager;
import engine.Enum;
import engine.gameManager.SessionManager;
import engine.gameManager.SimulationManager;
@@ -35,6 +37,11 @@ public class UpdateThread implements Runnable {
player.update(true);
}
}
for(AiPlayer player : AiPlayerManager.AiPlayers){
if (player != null) {
player.update();
}
}
} catch (Exception e) {
Logger.error("UPDATE ERROR",e);
}