// // PlayerObject::touchedObject from 0x446898 to 0x4469c8 (304 bytes) // // 1 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba8ee // // 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:30 +0000 // float __fastcall PlayerObject::touchedObject(float this, GameObject *a2) { float v3; // r4 int v4; // r3 cocos2d::CCPoint *v5; // r4 float Length; // s16 int v7; // [sp+0h] [bp-18h] BYREF _BYTE v8[8]; // [sp+4h] [bp-14h] BYREF _BYTE v9[8]; // [sp+Ch] [bp-Ch] BYREF v3 = this; v4 = *((_DWORD *)a2 + 223); if ( v4 == 1859 ) { *(_DWORD *)(LODWORD(this) + 2332) = 2; } else if ( v4 > 1859 ) { if ( v4 == 2866 ) { *(_DWORD *)(LODWORD(this) + 2336) = 2; return this; } if ( v4 == 3645 || v4 == 2069 ) { *(_DWORD *)(LODWORD(this) + 2344) = 2; v7 = *((_DWORD *)a2 + 416); if ( v7 > 0 ) { this = COERCE_FLOAT(std::map::operator[]((int **)(LODWORD(this) + 2360), &v7)); if ( *(_BYTE *)LODWORD(this) ) return this; *(_BYTE *)std::map::operator[]((int **)(LODWORD(v3) + 2360), &v7) = 1; } v5 = (cocos2d::CCPoint *)(LODWORD(v3) + 2348); ForceBlockGameObject::calculateForceToTarget((ForceBlockGameObject *)v8, a2); cocos2d::CCPoint::operator+(v9, v5, v8); cocos2d::CCPoint::operator=(v5, v9); Length = cocos2d::CCPoint::getLength(v5); this = cocos2d::CCPoint::getLength(v5); if ( this > 9999.0 ) { cocos2d::CCPoint::operator*(v9, v5, 9999.0 / Length); return COERCE_FLOAT(cocos2d::CCPoint::operator=(v5, v9)); } } } else { switch ( v4 ) { case 1813: *(_DWORD *)(LODWORD(this) + 2324) = 2; break; case 1829: if ( *(_BYTE *)(LODWORD(this) + 1996) ) { this = COERCE_FLOAT(PlayerObject::stopDashing((char *)LODWORD(this))); *(_BYTE *)(LODWORD(v3) + 1901) = 0; } break; case 1755: *(_DWORD *)(LODWORD(this) + 2328) = 2; break; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source