Search in sources :

Example 6 with Buff

use of delta.games.lotro.character.stats.buffs.Buff in project lotro-companion by dmorcellet.

the class MainTestShowBuffChoiceWindow method main.

/**
 * Basic main method for test.
 * @param args Not used.
 */
public static void main(String[] args) {
    CharacterData c = new CharacterData();
    c.setCharacterClass(CharacterClass.CAPTAIN);
    c.setRace(Race.MAN);
    BuffsManager buffs = new BuffsManager();
    List<Buff> possibleBuffs = BuffRegistry.getInstance().buildBuffSelection(c, buffs);
    Buff initialBuff = possibleBuffs.get(3);
    System.out.println(initialBuff);
    Buff buff = BuffChoiceWindowController.selectBuff(null, possibleBuffs, initialBuff);
    System.out.println(buff);
}
Also used : CharacterData(delta.games.lotro.character.CharacterData) Buff(delta.games.lotro.character.stats.buffs.Buff) BuffsManager(delta.games.lotro.character.stats.buffs.BuffsManager)

Aggregations

Buff (delta.games.lotro.character.stats.buffs.Buff)6 BuffsManager (delta.games.lotro.character.stats.buffs.BuffsManager)2 CharacterData (delta.games.lotro.character.CharacterData)1 CharacterEvent (delta.games.lotro.character.events.CharacterEvent)1 BasicStatsSet (delta.games.lotro.character.stats.BasicStatsSet)1 STAT (delta.games.lotro.character.stats.STAT)1 BuffInstance (delta.games.lotro.character.stats.buffs.BuffInstance)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1