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