// // GJBaseGameLayer::moveObjects from 0x474ba8 to 0x474c8e (230 bytes) // // 4 xrefs: // > GJBaseGameLayer::moveObject @ 0x474cba // > GJBaseGameLayer::processMoveActions @ 0x474d76 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x48ad6c // > GJBaseGameLayer::processAdvancedFollowAction @ 0x48ae2e // // 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 GJBaseGameLayer::moveObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2, double a3, double a4, bool a5) { int v8; // r0 cocos2d::ccArray *data; // r3 cocos2d::CCObject **arr; // r5 cocos2d::CCObject **v11; // r6 GameObject *v12; // r4 GameObject *v13; // t1 unsigned int m_commandIndex; // r3 float m_positionX; // s14 float m_positionY; // s14 if ( a2 ) { v8 = cocos2d::CCArray::count(a2); data = a2->data; a1->m_movedCount += v8; if ( data->num ) { arr = data->arr; v11 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v11 ) { v13 = (GameObject *)*arr++; v12 = v13; if ( !v13 ) break; if ( !v12->m_isDecoration2 ) { m_commandIndex = a1->m_gameState.m_commandIndex; if ( v12->m_unk4C4 != m_commandIndex ) { m_positionX = v12->m_positionX; v12->m_lastPosition.x = m_positionX; m_positionY = v12->m_positionY; v12->m_lastPosition.y = m_positionY; v12->m_unk4C4 = m_commandIndex; GameObject::dirtifyObjectRect(v12); } } if ( a3 != 0.0 && !v12->m_tempOffsetXRelated ) v12->m_positionX = v12->m_positionX + a3; if ( a4 != 0.0 ) v12->m_positionY = v12->m_positionY + a4; GameObject::dirtifyObjectPos(v12); a1->updateObjectSection(a1, v12); } } a1->updateDisabledObjectsLastPos(a1, a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source