use of main.elements.conditions.Condition in project Eidolons by IDemiurge.
the class TemplateSelectiveTargeting method initTargeting.
public void initTargeting() {
Conditions conditions = DC_ConditionMaster.getSelectiveTargetingTemplateConditions(template);
// TODO ?
Condition c = filter.getConditions();
if (c != null) {
conditions.add(c);
}
filter.setConditions(conditions);
filter.setTYPE(getTYPEforTemplate(template));
initialized = true;
}
use of main.elements.conditions.Condition in project Eidolons by IDemiurge.
the class MainManager method launchSelection.
public void launchSelection(final DC_TYPE t, final String group, String info) {
Condition c = null;
if (t == DC_TYPE.CHARS) {
if (CharacterCreator.isArcadeMode()) {
c = new NumericCondition("1", "{match_hero_level}");
} else {
if (DC_Game.game.getGameType() == GAME_TYPE.SCENARIO) {
if (ScenarioPrecombatMaster.getScenario() != null) {
c = ScenarioPrecombatMaster.getSelectHeroConditions();
}
}
}
}
sequenceMaster.launchEntitySelection(t, group, c, hero, info);
sequenceMaster.getSequence().setManager(this);
this.sequence = sequenceMaster.getSequence();
}
Aggregations