Example #1
0
 private void showAvailableSpells(MagicLearnView magicLearnView) {
   List<Spell> availableSpells =
       spellConfiguration.getAvailableSpellsInCircle(circleModel.getSelectedCircle());
   List<Spell> sortedSpells =
       new I18nedIdentificateSorter<Spell>().sortAscending(availableSpells, resources);
   magicLearnView.setAvailableMagic(sortedSpells);
 }
Example #2
0
 private void showLearnedSpells(MagicLearnView magicLearnView) {
   List<Spell> learnedSpells =
       spellConfiguration.getLearnedSpellsInCircles(circleModel.getCircles());
   magicLearnView.setLearnedMagic(learnedSpells);
 }