예제 #1
0
파일: editor_f.cpp 프로젝트: twelvedogs/Lix
bool Editor::search_criterion_hazard(const Filename& s) {
    if (s.get_extension() == gloB->ext_object_definitions) return false;
    const Object* ob = ObjLib::get(s);
    return ob && (ob->type == Object::TRAP
     ||           ob->type == Object::WATER
     ||           ob->type == Object::FLING
     ||           ob->type == Object::TRAMPOLINE);
}
예제 #2
0
파일: editor_f.cpp 프로젝트: twelvedogs/Lix
bool Editor::search_criterion_deco(const Filename& s) {
    if (s.get_extension() == gloB->ext_object_definitions) return false;
    const Object* ob = ObjLib::get(s);
    return ob && ob->type == Object::DECO;
}
예제 #3
0
파일: editor_f.cpp 프로젝트: twelvedogs/Lix
bool Editor::search_criterion_terrain(const Filename& s) {
    if (s.get_extension() == gloB->ext_object_definitions) return false;
    const Object* ob = ObjLib::get(s);
    return ob && ob->type == Object::TERRAIN && ob->subtype != 1;
}