protected List<SButton> determineIfAndWhatToDisplay(List<? extends Humanoid> lts) { Game game = Rpg.getGame(); Level level = game.getLevel(); lt = null; this.lts = lts; if (lts == null || lts.isEmpty()) return null; ArrayList<SButton> buttons = new ArrayList<>(); buttons.addAll(getAllOrderButtons(lts)); buttons.addAll(getAllAbilityButtons(lts)); Team team = level.getMM().getTeam(lts.get(0).getTeamName()); return buttons; }
protected List<SButton> determineIfAndWhatToDisplay(Humanoid lt) { Game game = Rpg.getGame(); Level level = game.getLevel(); this.lt = lt; lts = null; if (lt == null) return null; List<SButton> buttons = new ArrayList<>(); buttons.addAll(getAllOrderButtons(lt)); buttons.addAll(getAllAbilityButtons(lt)); // Team team = level.getMM().getTeam( lt.getTeamName() ); // if( Settings.yourBaseMode && lt instanceof Humanoid && !(lt instanceof Worker)){ // // buttons.add( AddToArmyButton.getInstance( game , (Humanoid) lt , team.getArmy() , // team.getArmyManager() )); // } return buttons; }