use of main.content.enums.system.AiEnums.GOAL_TYPE in project Eidolons by IDemiurge.
the class ActionSequenceConstructor method createActionSequences.
public List<ActionSequence> createActionSequences(UnitAI ai) {
TimeLimitMaster.markTimeForAI(ai);
List<ActionSequence> list = new ArrayList<>();
getActionSequenceConstructor().setPrioritizedCells(null);
boolean forced = false;
if (ai.getCurrentOrder() != null)
forced = true;
for (GOAL_TYPE type : GoalManager.getGoalsForUnit(ai)) {
List<ActionSequence> sequences = null;
try {
Goal goal = new // ???
Goal(// ???
type, // ???
null, ai);
goal.setForced(forced);
sequences = createActionSequencesForGoal(goal, ai);
list.addAll(sequences);
} catch (Exception e) {
main.system.ExceptionMaster.printStackTrace(e);
}
if (!TimeLimitMaster.checkTimeLimitForAi(ai)) {
break;
}
}
return list;
}
Aggregations