// // PlayerObject::testForMoving from 0x43540c to 0x4354e4 (216 bytes) // // 1 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x5bb58e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:18 +0000 // int __fastcall PlayerObject::testForMoving(PlayerObject *this, float a2, GameObject *a3) { const cocos2d::CCPoint *LastPosition; // r0 int result; // r0 float v8; // s16 const cocos2d::CCRect *v9; // r0 int v10; // r3 cocos2d::CCRect *v11; // r0 float v12; // [sp+4h] [bp-28h] BYREF float v13; // [sp+8h] [bp-24h] float v14; // [sp+Ch] [bp-20h] BYREF float v15; // [sp+10h] [bp-1Ch] _BYTE v16[4]; // [sp+14h] [bp-18h] BYREF float v17; // [sp+18h] [bp-14h] float v18; // [sp+20h] [bp-Ch] LastPosition = (const cocos2d::CCPoint *)GameObject::getLastPosition(a3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, LastPosition); (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)a3 + 680))(&v14, a3); if ( v14 == v12 && v15 == v13 ) return 0; result = *((unsigned __int8 *)this + 1959); if ( !*((_BYTE *)this + 1959) ) { if ( v13 <= v15 ) return result; goto LABEL_7; } if ( v13 >= v15 ) return 0; LABEL_7: v8 = a2 * 5.0; v9 = (const cocos2d::CCRect *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a3 + 664))(a3); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, v9); v10 = *((unsigned __int8 *)this + 1959); v18 = v18 + v8; if ( v10 ) v17 = v17 - v8; v11 = (cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 664))(this); result = cocos2d::CCRect::intersectsRect(v11, (const cocos2d::CCRect *)v16); if ( result ) *((_DWORD *)this + 326) = a3; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source