From 49789f6df3c637b5295666efafaa94219f623cd6 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Wed, 26 Feb 2020 21:24:23 -0300 Subject: [PATCH] Revert player to A* AI and make enemy just a tiny bit slower to prevent deadlocks Signed-off-by: Chris Cromer --- src/main/java/cl/cromer/azaraka/Constants.java | 2 +- src/main/java/cl/cromer/azaraka/ai/EnemyAI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cl/cromer/azaraka/Constants.java b/src/main/java/cl/cromer/azaraka/Constants.java index dfc7be1..71da128 100644 --- a/src/main/java/cl/cromer/azaraka/Constants.java +++ b/src/main/java/cl/cromer/azaraka/Constants.java @@ -41,7 +41,7 @@ public interface Constants { /** * Which type of AI to use */ - PlayerAIType PLAYER_AI = PlayerAIType.HUMAN; + PlayerAIType PLAYER_AI = PlayerAIType.ASTAR; /** * Whether or not the enemies should be controlled by AI */ diff --git a/src/main/java/cl/cromer/azaraka/ai/EnemyAI.java b/src/main/java/cl/cromer/azaraka/ai/EnemyAI.java index ca1cced..eb46b74 100644 --- a/src/main/java/cl/cromer/azaraka/ai/EnemyAI.java +++ b/src/main/java/cl/cromer/azaraka/ai/EnemyAI.java @@ -215,7 +215,7 @@ public class EnemyAI extends AI implements Runnable, Constants { public void run() { while (getActive()) { try { - Thread.sleep(600); + Thread.sleep(700); } catch (InterruptedException e) { logger.info(e.getMessage());