Search in sources :

Example 1 with PrinciplesCondition

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

the class PartyHelper method getPrincipleConditions.

public static Conditions getPrincipleConditions(Party party) {
    Conditions principlesConditions = new Conditions();
    for (Unit m : party.getMembers()) {
        String principles = m.getProperty(G_PROPS.PRINCIPLES);
        Condition principlesCondition = new PrinciplesCondition(principles, "{MATCH_" + G_PROPS.PRINCIPLES + "}", true);
        principlesConditions.add(principlesCondition);
    }
    return principlesConditions;
}
Also used : PrinciplesCondition(main.elements.conditions.PrinciplesCondition) Condition(main.elements.conditions.Condition) Unit(eidolons.entity.obj.unit.Unit) PrinciplesCondition(main.elements.conditions.PrinciplesCondition) Conditions(main.elements.conditions.Conditions)

Aggregations

Unit (eidolons.entity.obj.unit.Unit)1 Condition (main.elements.conditions.Condition)1 Conditions (main.elements.conditions.Conditions)1 PrinciplesCondition (main.elements.conditions.PrinciplesCondition)1