Search in sources :

Example 96 with ObjType

use of main.entity.type.ObjType in project Eidolons by IDemiurge.

the class TestDungeonInitializer method pickRandomDungeon.

protected ObjType pickRandomDungeon() {
    ObjType type;
    List<ObjType> list = DataManager.getTypes(DC_TYPE.DUNGEONS);
    FilterMaster.filterByProp(list, G_PROPS.WORKSPACE_GROUP.getName(), RANDOM_DUNGEON_WORKSPACE_FILTER);
    if (list.isEmpty()) {
        list = DataManager.getTypes(DC_TYPE.DUNGEONS);
        FilterMaster.filterByProp(list, G_PROPS.WORKSPACE_GROUP.getName(), MetaEnums.WORKSPACE_GROUP.FOCUS + "");
    }
    type = list.get(RandomWizard.getRandomListIndex(list));
    return type;
}
Also used : ObjType(main.entity.type.ObjType)

Example 97 with ObjType

use of main.entity.type.ObjType in project Eidolons by IDemiurge.

the class ScenarioInitializer method initMetaGame.

@Override
public ScenarioMeta initMetaGame(String data) {
    main.system.auxiliary.log.LogMaster.log(1, "KALJSDJFL:KSDJF initMetaGame " + data);
    ObjType type = DataManager.getType(data, DC_TYPE.SCENARIOS);
    if (type == null) {
        type = DataManager.getType(data, DC_TYPE.SCENARIOS);
    }
    return new ScenarioMeta(new Scenario(type), master);
}
Also used : ObjType(main.entity.type.ObjType)

Example 98 with ObjType

use of main.entity.type.ObjType in project Eidolons by IDemiurge.

the class CloneMaster method getTypeCopy.

public static ObjType getTypeCopy(ObjType type, String newName, Game game, String group) {
    // Ref ref = type.getRef();
    // type.setGame(null);
    // type.setRef(null);
    ObjType newType = null;
    if (type instanceof AbilityType)
        newType = new AbilityType((AbilityType) type);
    else
        newType = new ObjType(type);
    // (ObjType) CloneMaster.deepCopy(type);
    newType.cloned();
    return newType;
}
Also used : AbilityType(main.ability.AbilityType) ObjType(main.entity.type.ObjType)

Example 99 with ObjType

use of main.entity.type.ObjType in project Eidolons by IDemiurge.

the class TypeBuilder method buildType.

public static ObjType buildType(Node node, String typeType) {
    if (typeInitializer == null) {
        typeInitializer = new TypeInitializer();
    }
    OBJ_TYPE objType = ContentManager.getOBJ_TYPE(typeType);
    ObjType type = null;
    if (objType != null) {
        type = getTypeInitializer().getNewType(objType);
        buildType(node, type);
    } else {
        LogMaster.error("type with name \"" + typeType + "\" not found!");
    }
    return type;
}
Also used : OBJ_TYPE(main.content.OBJ_TYPE) ObjType(main.entity.type.ObjType)

Example 100 with ObjType

use of main.entity.type.ObjType in project Eidolons by IDemiurge.

the class ItemGenerator method generateConcoctions.

private static void generateConcoctions(ObjType type) {
    for (CONCOCTION_LEVEL lvl : CONCOCTION_LEVEL.values()) {
        ObjType newType = generateUsableItem(type, lvl.getName(), lvl.getImgCode(), lvl.getCost(), lvl.getQuality());
        newType.setParam(PARAMS.ENERGY, lvl.getMod());
    }
}
Also used : ObjType(main.entity.type.ObjType)

Aggregations

ObjType (main.entity.type.ObjType)354 ArrayList (java.util.ArrayList)42 Coordinates (main.game.bf.Coordinates)30 Ref (main.entity.Ref)25 Unit (eidolons.entity.obj.unit.Unit)24 OBJ_TYPE (main.content.OBJ_TYPE)18 PROPERTY (main.content.values.properties.PROPERTY)18 DC_TYPE (main.content.DC_TYPE)16 PARAMETER (main.content.values.parameters.PARAMETER)16 File (java.io.File)15 Entity (main.entity.Entity)12 XLinkedMap (main.data.XLinkedMap)11 EnumMaster (main.system.auxiliary.EnumMaster)11 DC_SpellObj (eidolons.entity.active.DC_SpellObj)9 MATERIAL (main.content.enums.entity.ItemEnums.MATERIAL)9 Obj (main.entity.obj.Obj)9 QUALITY_LEVEL (main.content.enums.entity.ItemEnums.QUALITY_LEVEL)8 MusicList (main.music.entity.MusicList)8 Wave (eidolons.game.battlecraft.logic.battle.arena.Wave)6 C_OBJ_TYPE (main.content.C_OBJ_TYPE)6