Пример #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);
}
Пример #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;
}
Пример #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;
}