Search in sources :

Example 11 with Conditions

use of main.elements.conditions.Conditions in project Eidolons by IDemiurge.

the class AshAnnihilationRule method initConditions.

@Override
public void initConditions() {
    conditions = new Conditions(new NumericCondition("{match_blaze_counters}", "0"));
    conditions.add(new NotCondition(new ClassificationCondition(CLASSIFICATIONS.ELEMENTAL)));
    conditions.add(new NotCondition(new PropCondition(G_PROPS.STANDARD_PASSIVES, STANDARD_PASSIVES.IMMATERIAL.getName())));
}
Also used : NotCondition(main.elements.conditions.NotCondition) ClassificationCondition(main.elements.conditions.standard.ClassificationCondition) NumericCondition(main.elements.conditions.NumericCondition) PropCondition(main.elements.conditions.PropCondition) Conditions(main.elements.conditions.Conditions)

Example 12 with Conditions

use of main.elements.conditions.Conditions in project Eidolons by IDemiurge.

the class PanicRule method initConditions.

@Override
public void initConditions() {
    conditions = new Conditions();
    conditions.add(CONDITION0);
    conditions.add(CONDITION);
    conditions.add(CONDITION2);
    conditions.add(ConditionMaster.getMoraleAffectedCondition(Ref.KEYS.TARGET));
    retain_conditions = new Conditions();
    retain_conditions.add(CONDITION);
    retain_conditions.add(CONDITION2);
    retain_conditions.add(ConditionMaster.getMoraleAffectedCondition(Ref.KEYS.TARGET));
}
Also used : Conditions(main.elements.conditions.Conditions)

Example 13 with Conditions

use of main.elements.conditions.Conditions in project Eidolons by IDemiurge.

the class TreasonRule method initConditions.

@Override
public void initConditions() {
    conditions = new Conditions();
    conditions.add(CONDITION0);
    conditions.add(CONDITION);
    conditions.add(ConditionMaster.getMoraleAffectedCondition(Ref.KEYS.TARGET));
    retain_conditions = new Conditions();
    retain_conditions.add(CONDITION);
    retain_conditions.add(ConditionMaster.getMoraleAffectedCondition(Ref.KEYS.TARGET));
}
Also used : Conditions(main.elements.conditions.Conditions)

Example 14 with Conditions

use of main.elements.conditions.Conditions in project Eidolons by IDemiurge.

the class Crawler method launchFastDc.

private static void launchFastDc() {
    DC_Engine.jarInit();
    FontMaster.init();
    GuiManager.init();
    String dungeon = new FileChooser(PathFinder.getDungeonLevelFolder()).launch("", "");
    FAST_DC.DEFAULT_DUNGEON = (dungeon);
    Ref ref = new Ref();
    Condition conditions = new Conditions();
    FAST_DC.PLAYER_PARTY = ListChooser.chooseType(DC_TYPE.CHARS, ref, conditions);
    FAST_DC.main(new String[] { String.valueOf(PresetLauncher.OPTION_NEW) });
}
Also used : Condition(main.elements.conditions.Condition) Ref(main.entity.Ref) FileChooser(main.swing.generic.components.editors.FileChooser) Conditions(main.elements.conditions.Conditions)

Example 15 with Conditions

use of main.elements.conditions.Conditions in project Eidolons by IDemiurge.

the class Crawler method main.

public static void main(String[] args) {
    FAST_DC.FAST_MODE = false;
    ExplorationMaster.setTestMode(true);
    DC_Engine.jarInit();
    FontMaster.init();
    GuiManager.init();
    int index = DialogMaster.optionChoice(launch_options, "Choose the type of Eidolons game you want to launch...");
    List<String> parts = null;
    if (index == 0) {
        String data = FileManager.readFile(launchDataPath);
        parts = StringMaster.openContainer(data);
        index = 1;
    }
    if (index == 2) {
    // random  = true;
    // parts = Collections.nCopies(2, "");
    } else if (index == 3) {
        FAST_DC.main(new String[] { "" + (Arrays.asList(PresetLauncher.LAUNCH_OPTIONS)).indexOf(StringMaster.getWellFormattedString(LAUNCH.EXPLORATION.toString())) });
        return;
    } else if (index == 4) {
        FAST_DC.main(new String[] { "" + (Arrays.asList(PresetLauncher.LAUNCH_OPTIONS)).indexOf(StringMaster.getWellFormattedString(LAUNCH.EXPLORATION_TEST.toString())) });
        return;
    }
    DemoLauncher.main(null);
    DC_Engine.mainMenuInit();
    String dungeon = parts == null ? "crawl" + new FileChooser(PathFinder.getDungeonLevelFolder() + "crawl").launch("", "") : parts.get(0);
    launchData += dungeon;
    dungeon = StringMaster.removePreviousPathSegments(dungeon, PathFinder.getDungeonLevelFolder());
    ScreenData data = new ScreenData(ScreenType.BATTLE, dungeon);
    GameLauncher launcher = new GameLauncher(GAME_SUBCLASS.TEST);
    Ref ref = new Ref();
    Condition conditions = new Conditions();
    launcher.PLAYER_PARTY = parts == null ? ListChooser.chooseType(DC_TYPE.CHARS, ref, conditions) : parts.get(1);
    launchData += StringMaster.SEPARATOR + launcher.PLAYER_PARTY;
    launcher.setDungeon(dungeon);
    launcher.PARTY_CODE = CODE.PRESET;
    launcher.ENEMY_CODE = CODE.NONE;
    GuiEventManager.trigger(GuiEventType.SWITCH_SCREEN, data);
    DC_Engine.gameStartInit();
    DC_Game game = launcher.initDC_Game();
    game.start(true);
    if (!StringMaster.isEmpty(launchData)) {
        FileManager.write(launchData, launchDataPath);
    }
}
Also used : Condition(main.elements.conditions.Condition) Ref(main.entity.Ref) FileChooser(main.swing.generic.components.editors.FileChooser) GameLauncher(eidolons.game.core.launch.GameLauncher) DC_Game(eidolons.game.core.game.DC_Game) Conditions(main.elements.conditions.Conditions) ScreenData(eidolons.libgdx.screens.ScreenData)

Aggregations

Conditions (main.elements.conditions.Conditions)43 Ref (main.entity.Ref)12 Condition (main.elements.conditions.Condition)7 SelectiveTargeting (main.elements.targeting.SelectiveTargeting)6 Obj (main.entity.obj.Obj)6 AddBuffEffect (eidolons.ability.effects.attachment.AddBuffEffect)5 ArrayList (java.util.ArrayList)5 NumericCondition (main.elements.conditions.NumericCondition)5 AutoTargeting (main.elements.targeting.AutoTargeting)5 Unit (eidolons.entity.obj.unit.Unit)4 ObjType (main.entity.type.ObjType)4 Coordinates (main.game.bf.Coordinates)4 FacingCondition (eidolons.ability.conditions.FacingCondition)3 AddTriggerEffect (eidolons.ability.effects.attachment.AddTriggerEffect)3 TemplateSelectiveTargeting (eidolons.ability.targeting.TemplateSelectiveTargeting)3 Effects (main.ability.effects.Effects)3 OrConditions (main.elements.conditions.OrConditions)3 RefCondition (main.elements.conditions.RefCondition)3 Targeting (main.elements.targeting.Targeting)3 GroupImpl (main.entity.group.GroupImpl)3