use of main.data.dialogue.DialogueType in project Eidolons by IDemiurge.
the class TypeInitializer method getNewType.
public ObjType getNewType(OBJ_TYPE obj_type) {
DC_TYPE OBJ_TYPE;
ObjType type = new ObjType();
if (obj_type instanceof DC_TYPE) {
OBJ_TYPE = (DC_TYPE) obj_type;
switch(OBJ_TYPE) {
case DIALOGUE:
type = new DialogueType();
setXmlTreeValue(true);
break;
case ABILS:
type = new AbilityType();
setXmlTreeValue(true);
break;
case BUFFS:
type = new BuffType();
break;
case ACTIONS:
type = new ActionType();
break;
case SPELLS:
type = new SpellType();
break;
case UNITS:
type = new UnitType();
// type.addProp(CLASSIFICATION, UNIT);
break;
case CHARS:
type = new UnitType();
// type.addProp(CLASSIFICATION, CHAR);
break;
default:
break;
}
}
type.setProperty(G_PROPS.TYPE, obj_type.getName());
type.setOBJ_TYPE_ENUM(obj_type);
return type;
}
Aggregations