// // GJBaseGameLayer::moveObjects from 0x100147890 to 0x100147baa (794 bytes) // // 6 xrefs: // > GJBaseGameLayer::processMoveActions @ 0x1001464ad // > GJBaseGameLayer::processMoveActions @ 0x100146571 // > GJBaseGameLayer::moveObject @ 0x100147be8 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001490da // > GJBaseGameLayer::processAdvancedFollowAction @ 0x100149760 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x10014a537 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GJBaseGameLayer::moveObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2, double a3, double a4, bool a5) { cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r12 unsigned __int64 v7; // r13 cocos2d::CCObject *v8; // r15 unsigned int v9; // eax cocos2d::CCObject *v10; // r15 unsigned int v11; // eax cocos2d::CCObject *v12; // r15 unsigned int v13; // eax cocos2d::CCObject *v14; // r15 unsigned int m_commandIndex; // eax if ( a2 ) { a1->m_movedCount += sub_100720070(a2); data = a2->data; if ( data->num ) { arr = data->arr; v7 = (unsigned __int64)&arr[data->num - 1]; if ( a3 == 0.0 ) { if ( a4 == 0.0 ) { do { v14 = *arr; if ( !*arr ) break; if ( !BYTE2(v14[23].__vftable) ) { m_commandIndex = a1->m_gameState.m_commandIndex; if ( HIDWORD(v14[22].__vftable) != m_commandIndex ) { *(_QWORD *)&v14[21].m_uOrderOfArrival = *(_QWORD *)&v14[16].m_uOrderOfArrival; HIDWORD(v14[22].__vftable) = m_commandIndex; GameObject::dirtifyObjectRect((GameObject *)v14); } } GameObject::dirtifyObjectPos((GameObject *)v14); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->updateObjectSection)(a1, v14); ++arr; } while ( (unsigned __int64)arr <= v7 ); } else { do { v12 = *arr; if ( !*arr ) break; if ( !BYTE2(v12[23].__vftable) ) { v13 = a1->m_gameState.m_commandIndex; if ( HIDWORD(v12[22].__vftable) != v13 ) { *(_QWORD *)&v12[21].m_uOrderOfArrival = *(_QWORD *)&v12[16].m_uOrderOfArrival; HIDWORD(v12[22].__vftable) = v13; GameObject::dirtifyObjectRect((GameObject *)v12); } } *(double *)&v12[17].__vftable = *(double *)&v12[17].__vftable + a4; GameObject::dirtifyObjectPos((GameObject *)v12); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->updateObjectSection)(a1, v12); ++arr; } while ( (unsigned __int64)arr <= v7 ); } } else if ( a4 == 0.0 ) { do { v10 = *arr; if ( !*arr ) break; if ( !BYTE2(v10[23].__vftable) ) { v11 = a1->m_gameState.m_commandIndex; if ( HIDWORD(v10[22].__vftable) != v11 ) { *(_QWORD *)&v10[21].m_uOrderOfArrival = *(_QWORD *)&v10[16].m_uOrderOfArrival; HIDWORD(v10[22].__vftable) = v11; GameObject::dirtifyObjectRect((GameObject *)v10); } } if ( !LOBYTE(v10[12].m_uUnknown) ) *(double *)&v10[16].m_uOrderOfArrival = *(double *)&v10[16].m_uOrderOfArrival + a3; GameObject::dirtifyObjectPos((GameObject *)v10); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->updateObjectSection)(a1, v10); ++arr; } while ( (unsigned __int64)arr <= v7 ); } else { do { v8 = *arr; if ( !*arr ) break; if ( !BYTE2(v8[23].__vftable) ) { v9 = a1->m_gameState.m_commandIndex; if ( HIDWORD(v8[22].__vftable) != v9 ) { *(_QWORD *)&v8[21].m_uOrderOfArrival = *(_QWORD *)&v8[16].m_uOrderOfArrival; HIDWORD(v8[22].__vftable) = v9; GameObject::dirtifyObjectRect((GameObject *)v8); } } if ( !LOBYTE(v8[12].m_uUnknown) ) *(double *)&v8[16].m_uOrderOfArrival = *(double *)&v8[16].m_uOrderOfArrival + a3; *(double *)&v8[17].__vftable = *(double *)&v8[17].__vftable + a4; GameObject::dirtifyObjectPos((GameObject *)v8); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->updateObjectSection)(a1, v8); ++arr; } while ( (unsigned __int64)arr <= v7 ); } } ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCArray *))a1->updateDisabledObjectsLastPos)(a1, a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source