Search in sources :

Example 1 with DialogueType

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;
}
Also used : DialogueType(main.data.dialogue.DialogueType) DC_TYPE(main.content.DC_TYPE) AbilityType(main.ability.AbilityType)

Aggregations

AbilityType (main.ability.AbilityType)1 DC_TYPE (main.content.DC_TYPE)1 DialogueType (main.data.dialogue.DialogueType)1