isLogicControllable

This commit is contained in:
Anuken
2023-02-23 16:12:52 -05:00
parent ab2138d8e7
commit a38351d41f
5 changed files with 21 additions and 1 deletions
@@ -49,6 +49,11 @@ public class CommandAI extends AIController{
}
}
@Override
public boolean isLogicControllable(){
return !hasCommand();
}
public boolean isAttacking(){
return target != null && unit.within(target, unit.range() + 10f);
}