コード例 #1
0
ファイル: qte.cpp プロジェクト: MiniSheep/Synthese
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: New_Scene(); break;
        case 1: ExportObj(); break;
        case 2: ExportMaya(); break;
        case 3: ExecuteTool01(); break;
        case 4: ExecuteTool02(); break;
        case 5: ExecuteTool03(); break;
        case 6: ExecuteTool04(); break;
        case 7: ExecuteTool05(); break;
        case 8: ExecuteTool06(); break;
        case 9: ExecuteTool07(); break;
        case 10: ExecuteTool08(); break;
        case 11: ExecuteTool09(); break;
        case 12: ExecuteTool10(); break;
        case 13: ExecuteTool11(); break;
        case 14: ExecuteTool12(); break;
        case 15: ExecuteTool13(); break;
        case 16: ExecuteTool14(); break;
        case 17: ExecuteTool15(); break;
        case 18: ExecuteTool16(); break;
        case 19: ExecuteTool17(); break;
        case 20: ExecuteTool18(); break;
        case 21: ExecuteTool19(); break;
        case 22: ExecuteTool20(); break;
        case 23: ExecuteTool21(); break;
        case 24: ExecuteTool22(); break;
        case 25: ExecuteTool23(); break;
        case 26: ExecuteTool24(); break;
        case 27: ExecuteTool25(); break;
        case 28: ExecuteTool26(); break;
        case 29: ExecuteTool27(); break;
        case 30: ExecuteTool28(); break;
        case 31: ExecuteTool29(); break;
        case 32: ExecuteTool30(); break;
        case 33: ExecuteTool31(); break;
        case 34: ExecuteTool32(); break;
        case 35: ExecuteTool33(); break;
        case 36: ExecuteTool34(); break;
        case 37: ExecuteTool35(); break;
        case 38: modifySelectedButton((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 39: editingSceneLeft((*reinterpret_cast< const Vector(*)>(_a[1]))); break;
        case 40: editingSceneRight((*reinterpret_cast< const Vector(*)>(_a[1]))); break;
        case 41: selectCell((*reinterpret_cast< const Vector(*)>(_a[1]))); break;
        case 42: editingHeight((*reinterpret_cast< const Vector(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        }
        _id -= 43;
    }
    return _id;
}
コード例 #2
0
ファイル: oapi.cpp プロジェクト: darwin/pacwars2
void ExportEntity(GEntity * ge, SCENTITY * se)
{
	ExportObj((GObj *) ge, &se->obj);

	se->anim = ge->anim;
	se->frame = ge->frame;
	se->framedelay = ge->framedelay;
//  se->radius = ge->radius;
//  se->xaccel = ge->xaccel;
	se->xpos = ge->xpos;
	se->xsize = ge->xsize;
//  se->xspeed = ge->xspeed;
//  se->yaccel = ge->yaccel;
	se->ypos = ge->ypos;
	se->ysize = ge->ysize;
//  se->yspeed = ge->yspeed;
}