T1 walker thing done

This commit is contained in:
Anuken
2022-04-30 21:11:17 -04:00
parent 59be28b5eb
commit 512fbe0199
9 changed files with 89 additions and 9 deletions

View File

@@ -103,11 +103,16 @@ public class Team implements Comparable<Team>{
return state.teams.isActive(this);
}
/** @return whether this team is solely comprised of AI, with no players. */
/** @return whether this team is supposed to be AI-controlled. */
public boolean isAI(){
return (state.rules.waves || state.rules.attackMode) && this == state.rules.waveTeam;
}
/** @return whether this team is solely comprised of AI (with no players possible). */
public boolean isOnlyAI(){
return isAI() && data().players.size == 0;
}
/** @return whether this team needs a flow field for "dumb" wave pathfinding. */
public boolean needsFlowField(){
return isAI() && !rules().rtsAi;