Esempio n. 1
0
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);
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
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;
}