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;
}
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);
}
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;
}
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;
}
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());
}
}
Aggregations