// // PlayerObject::postCollision from 0x4429a0 to 0x443d58 (5048 bytes) // // 1 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x5bb322 // // 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:28 +0000 // int __fastcall PlayerObject::postCollision(PlayerObject *this, int a2, int a3) { float v6; // s17 int v7; // r8 int v8; // r5 GameObject *v9; // r0 GameObject *v10; // r0 int v11; // r3 int v12; // r3 int v13; // r3 int v14; // r3 double *v15; // r9 _BOOL4 v16; // r6 int v17; // r2 int v18; // r3 int v19; // r2 int v20; // r3 float *v21; // r6 float v22; // s14 int v23; // r11 double *v24; // r10 int ModifiedSlopeYVel; // r0 float v26; // r11 float v27; // s16 float v28; // s19 double v29; // d6 double v30; // d7 int v31; // r5 float v32; // s19 const cocos2d::CCRect *v33; // r0 double v34; // d7 float v35; // s16 int v36; // r0 float v37; // s16 double v38; // d6 double v39; // d7 const cocos2d::CCRect *v40; // r0 GameObject *v41; // r0 int v42; // r3 GameObject *v43; // r0 void (__fastcall *v44)(PlayerObject *, float *); // r6 float v45; // s16 int v46; // r0 int v47; // r8 const cocos2d::CCRect *v48; // r0 int v49; // r3 float v50; // s19 float v51; // s16 void (__fastcall *v52)(PlayerObject *, float *); // r5 float v53; // s15 int v54; // r0 _DWORD *v55; // r3 int *v56; // r6 int *v57; // r11 int v58; // r5 int v59; // r1 int v60; // r3 int v61; // t1 int v62; // r5 int v63; // r0 unsigned int v64; // r5 int v65; // r0 double *v66; // r5 double *v67; // r6 const cocos2d::CCRect *v68; // r0 float v69; // s20 float v70; // s19 float v71; // s14 float v72; // s16 int v73; // r0 double v74; // d7 int v75; // r8 const cocos2d::CCRect *v76; // r0 int v77; // r3 float v78; // s19 float v79; // s16 void (__fastcall *v80)(PlayerObject *, float *); // r5 float v81; // r6 int v82; // r0 _DWORD *v83; // r3 int *v84; // r6 int v85; // r2 int *v86; // r11 int v87; // r5 int v88; // r3 int v89; // t1 int v90; // r5 int v91; // r0 unsigned int v92; // r5 int v93; // r0 int v94; // r5 double *v95; // r10 int v96; // r3 const cocos2d::CCPoint *LastPosition; // r0 float v98; // s19 float v99; // s16 int v100; // r2 float v101; // s14 float v102; // s15 double *v103; // r8 double v104; // d7 void (__fastcall *v105)(PlayerObject *, float *); // r9 int (__fastcall *v106)(PlayerObject *); // r3 int v107; // r0 float v108; // r2 float v109; // s15 float v110; // r1 int v111; // r11 float v112; // s15 unsigned __int8 *v113; // r0 int v114; // r8 const cocos2d::CCPoint *v115; // r0 float v116; // s15 float v117; // s14 GameObject *v118; // r6 unsigned __int8 *v119; // r0 int v120; // r6 const cocos2d::CCPoint *v121; // r0 GameObject *v122; // r2 double *v123; // r9 double *v124; // r6 double *v125; // r8 double v126; // d7 double v127; // d5 float v128; // s12 int v129; // r3 unsigned int v130; // s15 double v131; // d7 float v132; // s12 float v133; // s14 double v134; // d6 float v135; // s12 double v136; // d7 double v137; // d5 float v138; // s12 int v139; // r2 double v140; // d7 double *v141; // r3 __int64 v142; // r0 double *v143; // r5 int v144; // r3 int v145; // r2 double v146; // d6 double v147; // d10 int v148; // s15 double v149; // r0 cocos2d::CCArray *v150; // r6 int v151; // r5 int v152; // r0 cocos2d::CCArray *v153; // r6 float v154; // s16 const cocos2d::CCRect *v155; // r0 float v156; // s16 const cocos2d::CCRect *v157; // r0 int v158; // r3 float v159; // s19 float v160; // r0 _BOOL4 v161; // r9 float v162; // s19 float v163; // r0 int v165; // [sp+8h] [bp-5Ch] int v166; // [sp+8h] [bp-5Ch] int v167; // [sp+10h] [bp-54h] int v168; // [sp+10h] [bp-54h] int v169; // [sp+14h] [bp-50h] int v170; // [sp+14h] [bp-50h] float v171[3]; // [sp+1Ch] [bp-48h] BYREF float v172; // [sp+28h] [bp-3Ch] float v173; // [sp+2Ch] [bp-38h] BYREF float v174; // [sp+30h] [bp-34h] float v175; // [sp+34h] [bp-30h] float v176; // [sp+38h] [bp-2Ch] float v177; // [sp+3Ch] [bp-28h] BYREF float v178; // [sp+40h] [bp-24h] float v179; // [sp+44h] [bp-20h] float v180; // [sp+48h] [bp-1Ch] float v181; // [sp+4Ch] [bp-18h] BYREF float v182; // [sp+50h] [bp-14h] if ( *((_BYTE *)this + 2466) ) { v6 = *(float *)&a2 * 4.0; } else { v6 = 0.5; if ( !a3 ) v6 = 1.0; } v7 = *((unsigned __int8 *)this + 2209); v8 = *((unsigned __int8 *)this + 2208); if ( *((_BYTE *)this + 2209) && *((_BYTE *)this + 2208) ) { if ( *((_BYTE *)this + 2210) ) v8 = 0; else v7 = 0; } v9 = *((GameObject **)this + 327); if ( v9 && GameObject::getGroupDisabled(v9) ) *((_DWORD *)this + 327) = 0; v10 = *((GameObject **)this + 322); if ( v10 && GameObject::getGroupDisabled(v10) ) *((_DWORD *)this + 322) = 0; v11 = *((_DWORD *)this + 327); if ( v11 ) { v12 = *(unsigned __int8 *)(v11 + 1117); if ( v12 ) LOBYTE(v12) = 1; *((_BYTE *)this + 2248) = v12; } if ( *((_BYTE *)this + 1944) ) { v13 = *((_DWORD *)this + 350); if ( v13 ) { if ( !*((_BYTE *)this + 1952) ) { v14 = *(unsigned __int8 *)(v13 + 1117); if ( v14 ) LOBYTE(v14) = 1; *((_BYTE *)this + 2248) = v14; } } } v15 = (double *)((char *)this + 1856); v16 = *((double *)this + 232) != 0.0 || *((double *)this + 233) != 0.0; if ( *((_BYTE *)this + 1956) && *((_BYTE *)this + 2265) && !v16 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v181, (PlayerObject *)((char *)this + 1060)); PlayerObject::placeStreakPoint(this, (const cocos2d::CCPoint *)&v181, v17, v18); } v19 = *((unsigned __int8 *)this + 1944); v20 = *((unsigned __int8 *)this + 1945); *((_BYTE *)this + 2265) = v16; if ( v19 != v20 ) { if ( *((_BYTE *)this + 1956) ) PlayerObject::placeStreakPoint(this, a2, v19, *((unsigned __int8 *)this + 1956)); if ( !*((_BYTE *)this + 1944) ) { v21 = (float *)((char *)this + 1948); *((_QWORD *)this + 286) = *((_QWORD *)this + 266); v22 = *((float *)this + 487); if ( v22 < 0.0 && *((double *)this + 241) > v22 && *((_BYTE *)this + 1851) ) { v23 = 1; } else if ( v22 <= 0.0 || *((double *)this + 241) >= v22 ) { v23 = 0; } else { v23 = *((unsigned __int8 *)this + 1851) ^ 1; } v24 = (double *)((char *)this + 1824); if ( (!*((_BYTE *)this + 2052) || PlayerObject::isFlying(this) || *((_BYTE *)this + 1955)) && v23 ) { ModifiedSlopeYVel = PlayerObject::getModifiedSlopeYVel(this); v26 = *((float *)this + 324); LODWORD(v27) = ModifiedSlopeYVel; v28 = cosf(v26); if ( *((_BYTE *)this + 2320) ) { v29 = fabs(tanf(v26) * *((double *)this + 275)) * 1.10000002; v30 = -1.0; if ( v27 >= 0.0 ) v30 = 1.0; v27 = v29 * v30; } if ( PlayerObject::isBoostValid(this, v27) && (!*((_BYTE *)this + 2320) || (v7 || v8) && fabs(*((double *)this + 275)) >= (float)((float)(v28 * 5.0) - 1.0)) ) { PlayerObject::boostPlayer(COERCE_DOUBLE(__PAIR64__(LODWORD(v27), (unsigned int)this))); } } else { if ( *((_BYTE *)this + 1959) ) { if ( *v21 <= 0.0 ) goto LABEL_56; } else if ( *v21 >= 0.0 ) { goto LABEL_56; } if ( !*((_BYTE *)this + 2052) && !*((_BYTE *)this + 1901) && !*((_BYTE *)this + 1902) && *((unsigned __int8 *)this + 1851) == *((unsigned __int8 *)this + 1959) ) { *((_BYTE *)this + 2036) = 0; v147 = *v24; v148 = PlayerObject::flipMod(this); LODWORD(v149) = this; PlayerObject::setYVelocity(v149, -v147 * (double)v148, 17); *((_BYTE *)this + 1961) = 0; PlayerObject::runRotateAction(this, 0, 14); } } LABEL_56: if ( *((double *)this + 280) > 0.0 ) { if ( v7 ) { if ( !*((_BYTE *)this + 2299) && !v8 ) goto LABEL_57; } else if ( !v8 || *((_BYTE *)this + 2299) ) { goto LABEL_57; } *((_BYTE *)this + 2233) = 0; *((_QWORD *)this + 280) = 0; *((_BYTE *)this + 2296) = 1; } LABEL_57: *v24 = 0.0; *v21 = 0.0; *((_QWORD *)this + 227) = 0; *((_DWORD *)this + 350) = 0; } } if ( *v15 != 0.0 && *((double *)this + 233) != 0.0 ) { v31 = *((unsigned __int8 *)this + 2460); if ( !*((_BYTE *)this + 2460) ) { v32 = 0.8; if ( !*((_BYTE *)this + 2320) ) v32 = 0.7; v33 = (const cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 664))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, v33); v34 = *v15 - *((double *)this + 233); v36 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); v35 = v34; v37 = fabsf(v35); if ( v37 == 0.0 ) { v31 = 1; } else { v38 = *(float *)(v36 + 4); v39 = *v15; if ( *((_BYTE *)this + 1959) ) { if ( *v15 > v38 ) v31 = v39 > *((float *)this + 266); } else if ( *v15 < v38 ) { v31 = v39 < *((float *)this + 266); } else { v31 = *((unsigned __int8 *)this + 1959); } } if ( *((_BYTE *)this + 2320) && (v36 = *((_DWORD *)this + 350)) != 0 && v37 >= (float)(v172 * v32) && v37 <= v172 && (v40 = (const cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v36 + 664))(v36), cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v181, v40), (v36 = cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v171, (const cocos2d::CCRect *)&v181)) != 0) ) { v41 = *((GameObject **)this + 350); if ( *((_BYTE *)v41 + 944) && !GameObject::slopeFloorTop(v41) || (v43 = *((GameObject **)this + 350), !*((_BYTE *)v43 + 944)) && GameObject::slopeFloorTop(v43) ) { v42 = -1; } else { v42 = 1; } *((_QWORD *)this + 275) = 0; v44 = *(void (__fastcall **)(PlayerObject *, float *))(*(_DWORD *)this + 92); v45 = *((float *)this + 265) + (float)((float)v42 * *(float *)&a2); v46 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v177, v45, *(float *)(v46 + 4)); v44(this, &v177); } else if ( !v31 && v37 < (float)(v32 * v172) ) { if ( *((_BYTE *)this + 2320) ) { v47 = 1; v165 = *((_DWORD *)this + 610); v48 = (const cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 664))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v173, v48); v49 = *(_DWORD *)this; v173 = v173 + 1.0; v174 = v174 - 1.0; v175 = v175 - 2.0; v176 = v176 + 2.0; v50 = *(float *)((*(int (__fastcall **)(PlayerObject *))(v49 + 96))(this) + 4); while ( 2 ) { v51 = ceilf((float)v47 * 0.5) * 3.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v177, (const cocos2d::CCRect *)&v173); if ( (v47 & 1) == 0 ) v51 = -v51; v177 = v177 + v51; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v181, (const cocos2d::CCRect *)&v177); v36 = GJBaseGameLayer::staticObjectsInRect(v165, &v181, 0); if ( !v36 || (v55 = *(_DWORD **)(v36 + 52), !*v55) ) { LABEL_92: v52 = *(void (__fastcall **)(PlayerObject *, float *))(*(_DWORD *)this + 92); v53 = *(float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); v54 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v181, v51 + v53, *(float *)(v54 + 4)); v52(this, &v181); goto LABEL_108; } v56 = (int *)v55[3]; v57 = &v56[*v55 - 1]; v58 = 0; v59 = 0; while ( v56 <= v57 ) { v61 = *v56++; v60 = v61; if ( !v61 ) break; v169 = v59; v167 = v60; v36 = (*(int (__fastcall **)(int))(*(_DWORD *)v60 + 96))(v60); v59 = v169; if ( *(float *)(v36 + 4) < v50 ) { if ( v169 ) goto LABEL_101; v58 = 1; } else { v36 = (*(int (__fastcall **)(int))(*(_DWORD *)v167 + 96))(v167); if ( *(float *)(v36 + 4) <= v50 || v58 ) goto LABEL_101; v59 = 1; } } if ( !v59 || !v58 ) goto LABEL_92; LABEL_101: if ( ++v47 != 9 ) continue; break; } } if ( !*((_BYTE *)this + 2464) ) { if ( !*((_BYTE *)this + 1604) ) v36 = (*(int (__fastcall **)(PlayerObject *, char *))(*(_DWORD *)this + 92))(this, (char *)this + 1060); v62 = *((unsigned __int8 *)this + 1605); if ( *((_BYTE *)this + 1605) ) { *((_BYTE *)this + 1900) = 1; } else { v63 = GameManager::sharedState((GameManager *)v36); (*(void (__fastcall **)(_DWORD, PlayerObject *, int))(**(_DWORD **)(v63 + 404) + 648))( *(_DWORD *)(v63 + 404), this, v62); } } } } } LABEL_108: v64 = *((unsigned __int8 *)this + 2464); if ( !*((_BYTE *)this + 2464) && cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 312)) && cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 313)) ) { v150 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*((cocos2d::CCDictionary **)this + 312)); while ( v64 < cocos2d::CCArray::count(v150) ) { v65 = cocos2d::CCArray::objectAtIndex(v150, v64); if ( cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 313), *(_DWORD *)(v65 + 52)) ) { LABEL_320: LODWORD(v142) = (*(int (__fastcall **)(PlayerObject *, char *))(*(_DWORD *)this + 92))( this, (char *)this + 1060); v151 = *((unsigned __int8 *)this + 1605); if ( *((_BYTE *)this + 1605) ) { *((_BYTE *)this + 1900) = 1; } else { v152 = GameManager::sharedState((GameManager *)v142); LODWORD(v142) = (*(int (__fastcall **)(_DWORD, PlayerObject *, int))(**(_DWORD **)(v152 + 404) + 648))( *(_DWORD *)(v152 + 404), this, v151); } return v142; } ++v64; } } if ( *((_BYTE *)this + 2320) ) { v66 = (double *)((char *)this + 1872); if ( *((double *)this + 234) != 0.0 ) { v67 = (double *)((char *)this + 1880); if ( *((double *)this + 235) != 0.0 ) { v68 = (const cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 664))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, v68); v69 = *((float *)this + 502); v70 = v171[2]; v71 = *v67 - *v66; v72 = fabsf(v71); v73 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); if ( v72 != 0.0 ) { v74 = *(float *)v73; if ( *((double *)this + 275) < 0.0 ) { if ( *v66 > v74 && *v66 > *((float *)this + 265) ) goto LABEL_147; } else if ( *v67 < v74 && *v67 < *((float *)this + 265) ) { goto LABEL_147; } if ( v72 < (float)(v70 - (float)(v69 * 5.0)) ) { if ( *((_BYTE *)this + 2320) ) { v75 = 1; v166 = *((_DWORD *)this + 610); v76 = (const cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 664))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v173, v76); v77 = *(_DWORD *)this; v173 = v173 - 1.0; v174 = v174 + 1.0; v175 = v175 + 2.0; v176 = v176 - 2.0; v78 = *(float *)(*(int (__fastcall **)(PlayerObject *))(v77 + 96))(this); while ( 2 ) { v79 = ceilf((float)v75 * 0.5) * 3.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v177, (const cocos2d::CCRect *)&v173); if ( (v75 & 1) == 0 ) v79 = -v79; v178 = v178 + v79; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v181, (const cocos2d::CCRect *)&v177); v73 = GJBaseGameLayer::staticObjectsInRect(v166, &v181, 0); if ( !v73 || (v83 = *(_DWORD **)(v73 + 52), !*v83) ) { LABEL_133: v80 = *(void (__fastcall **)(PlayerObject *, float *))(*(_DWORD *)this + 92); v81 = *(float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); v82 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v181, v81, v79 + *(float *)(v82 + 4)); v80(this, &v181); goto LABEL_147; } v84 = (int *)v83[3]; v85 = 0; v86 = &v84[*v83 - 1]; v87 = 0; while ( v84 <= v86 ) { v89 = *v84++; v88 = v89; if ( !v89 ) break; v170 = v85; v168 = v88; v73 = (*(int (__fastcall **)(int))(*(_DWORD *)v88 + 96))(v88); v85 = v170; if ( *(float *)v73 < v78 ) { if ( v170 ) goto LABEL_142; v87 = 1; } else { v73 = (*(int (__fastcall **)(int))(*(_DWORD *)v168 + 96))(v168); if ( *(float *)(v73 + 4) <= v78 || v87 ) goto LABEL_142; v85 = 1; } } if ( !v87 || !v85 ) goto LABEL_133; LABEL_142: if ( ++v75 != 9 ) continue; break; } } if ( !*((_BYTE *)this + 1604) ) v73 = (*(int (__fastcall **)(PlayerObject *, char *))(*(_DWORD *)this + 92))(this, (char *)this + 1060); v90 = *((unsigned __int8 *)this + 1605); if ( *((_BYTE *)this + 1605) ) { *((_BYTE *)this + 1900) = *((_BYTE *)this + 2464) ^ 1; } else { v91 = GameManager::sharedState((GameManager *)v73); (*(void (__fastcall **)(_DWORD, PlayerObject *, int))(**(_DWORD **)(v91 + 404) + 648))( *(_DWORD *)(v91 + 404), this, v90); } } } } } LABEL_147: v92 = *((unsigned __int8 *)this + 2464); if ( !*((_BYTE *)this + 2464) && cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 314)) && cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 315)) ) { v153 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*((cocos2d::CCDictionary **)this + 314)); while ( v92 < cocos2d::CCArray::count(v153) ) { v93 = cocos2d::CCArray::objectAtIndex(v153, v92); if ( cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 315), *(_DWORD *)(v93 + 52)) ) goto LABEL_320; ++v92; } } } v94 = *((unsigned __int8 *)this + 2320); v95 = (double *)((char *)this + 1328); if ( *((_BYTE *)this + 2320) ) { v96 = *((_DWORD *)this + 322); if ( v96 ) *((_DWORD *)this + 323) = v96; v94 = *((_DWORD *)this + 323); if ( *((_DWORD *)this + 327) && *((_BYTE *)this + 2036) || v94 ) { if ( !v94 ) v94 = *((_DWORD *)this + 327); if ( *(_BYTE *)(v94 + 1115) ) { v94 = 0; } else { LastPosition = (const cocos2d::CCPoint *)GameObject::getLastPosition((GameObject *)v94); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v171, LastPosition); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v94 + 680))(&v173, v94); if ( *(_BYTE *)(v94 + 1119) ) { GameObject::getScalePosDelta((GameObject *)&v181); v98 = v173; v99 = v181; if ( v98 > *(float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this) ) v99 = -v99; } else { v99 = 0.0; } v100 = *((unsigned __int8 *)this + 1963); if ( *((_BYTE *)this + 1963) ) { v101 = v171[1]; v102 = v174; } else { v101 = v171[0]; v102 = v173; } v103 = (double *)((char *)this + 2216); v104 = (float)((float)(v102 - v101) + v99); *((double *)this + 277) = v104; *v95 = v104; v105 = *(void (__fastcall **)(PlayerObject *, float *))(*(_DWORD *)this + 92); v106 = *(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96); if ( v100 ) { v107 = v106(this); v110 = 0.0; v112 = *v103; v108 = v112; } else { v107 = v106(this); v108 = 0.0; v109 = *v103; v110 = v109; } v111 = v107; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v177, v110, v108); cocos2d::CCPoint::operator+(&v181, v111, &v177); v94 = 1; v105(this, &v181); *((double *)this + 282) = *((double *)this + 282) + (float)(*(float *)&a2 / 60.0); } } PlayerObject::performSlideCheck((int)this); if ( !*((_BYTE *)this + 2036) ) *((_DWORD *)this + 323) = *((unsigned __int8 *)this + 2036); } v113 = *((unsigned __int8 **)this + 327); if ( v113 ) { if ( *((_DWORD *)this + 322) ) { v114 = 0; } else { v114 = v113[1116]; if ( v113[1116] ) { v114 = *((_DWORD *)this + 322); } else { v115 = (const cocos2d::CCPoint *)GameObject::getLastPosition((GameObject *)v113); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, v115); (*(void (__fastcall **)(float *))(**((_DWORD **)this + 327) + 680))(&v177); GameObject::getScalePosDelta((GameObject *)&v181); v116 = v177; v117 = v173; if ( v177 != v173 || v178 != v174 || v182 != 0.0 ) { if ( !*((_BYTE *)this + 1963) ) { v116 = v178; v117 = v174; } if ( *((_BYTE *)this + 1959) ) v114 = v117 < (float)(v116 - v182); else v114 = v117 > (float)(v116 + v182); } } } } else { v114 = 0; } if ( !cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 313)) || v114 ) { v118 = *((GameObject **)this + 327); *((_BYTE *)this + 1384) = 0; *((_DWORD *)this + 327) = 0; if ( v118 ) { if ( v114 ) { v154 = 10.0; if ( !*((_BYTE *)this + 2320) ) v154 = 5.0; if ( *((_BYTE *)v118 + 1120) ) v154 = 20.0; v155 = (const cocos2d::CCRect *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v118 + 664))(v118); v156 = *(float *)&a2 * v154; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, v155); v157 = (const cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 664))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v173, v157); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v177, (const cocos2d::CCRect *)v171); v158 = *((unsigned __int8 *)this + 1963); if ( *((_BYTE *)this + 1963) ) v179 = v179 + v156; else v180 = v180 + v156; if ( *((_BYTE *)this + 1959) ) { if ( v158 ) { v162 = COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)v171)); v163 = COERCE_FLOAT(cocos2d::CCRect::getMaxX((cocos2d::CCRect *)&v173)); } else { v162 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)v171)); v163 = COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)&v173)); } v161 = (float)(v162 - v163) < v156; if ( *((_BYTE *)this + 1963) ) v177 = v177 - v156; else v178 = v178 - v156; } else { if ( v158 ) { v159 = COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)&v173)); v160 = COERCE_FLOAT(cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v171)); } else { v159 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)&v173)); v160 = COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v171)); } v161 = (float)(v159 - v160) < v156; } if ( (cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v173, (const cocos2d::CCRect *)&v177) || (v118 = *((GameObject **)this + 326)) != nullptr) && v161 ) { *((_BYTE *)this + 1384) = 1; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v181, (const cocos2d::CCRect *)&unk_D2B83C); PlayerObject::collidedWithObject(this, 0.0, v118, (const cocos2d::CCRect *)&v181, 1); } } } } v119 = *((unsigned __int8 **)this + 322); if ( v119 ) { v120 = v119[1116]; if ( v119[1116] ) { v120 = 0; } else { v121 = (const cocos2d::CCPoint *)GameObject::getLastPosition((GameObject *)v119); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v177, v121); (*(void (__fastcall **)(float *))(**((_DWORD **)this + 322) + 680))(&v181); if ( v181 != v177 || v182 != v178 ) { if ( *((_BYTE *)this + 1959) ) v120 = v178 < v182; else v120 = v178 > v182; } } } else { v120 = 0; } if ( !cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 313)) || v120 ) { v122 = *((GameObject **)this + 322); *((_BYTE *)this + 1384) = 0; *((_DWORD *)this + 322) = 0; if ( v120 ) { *((_BYTE *)this + 1384) = 1; PlayerObject::collidedWithSlope(this, 0.0, v122, 1); } } v123 = (double *)((char *)this + 1344); v124 = (double *)((char *)this + 1928); v125 = (double *)((char *)this + 1336); v126 = *((double *)this + 168); if ( v126 != 0.0 && *((int *)this + 546) <= 0 ) { v127 = *v125; v128 = v126 - *v125; if ( fabsf(v128) > (float)(v6 * 0.5) ) { v129 = *((unsigned __int8 *)this + 1959); if ( !*((_BYTE *)this + 1959) ) { if ( v126 <= 5.0 || v127 >= v126 ) goto LABEL_220; LABEL_209: if ( v126 > 20.0 ) { v126 = 20.0; } else if ( v126 < -20.0 ) { v126 = -20.0; } *v123 = v126; if ( v129 ) { if ( *v124 < v126 ) { LABEL_219: *((_DWORD *)this + 322) = 0; *((_DWORD *)this + 327) = 0; goto LABEL_220; } } else if ( *v124 > v126 ) { goto LABEL_219; } *(float *)&v130 = v126; PlayerObject::boostPlayer(COERCE_DOUBLE(__PAIR64__(v130, (unsigned int)this))); goto LABEL_219; } if ( v126 < -5.0 && v127 > v126 ) goto LABEL_209; } } LABEL_220: if ( *((_BYTE *)this + 2320) ) { v131 = *((double *)this + 169); if ( v131 != 0.0 && !*((_BYTE *)this + 2036) && *((int *)this + 547) <= 0 && !v94 && *((double *)this + 282) > 0.0500000007 ) { v132 = v131 - *v95; if ( fabsf(v132) > (float)(v6 * 0.5) ) { v133 = v131 * 0.899999976 / *(float *)&a2; if ( a3 ) { if ( !*((_BYTE *)this + 1360) ) v133 = v133 * 0.5; } else if ( *((_BYTE *)this + 1360) ) { v133 = v133 + v133; } v134 = v133 + *((double *)this + 275); *((double *)this + 275) = v134; if ( fabsf(v133) >= 2.0 ) { v135 = v134; *((_BYTE *)this + 2224) = 1; *((float *)this + 557) = v135; } *((_QWORD *)this + 257) = 0; } } v136 = *((double *)this + 172); if ( v136 != 0.0 && *((int *)this + 548) <= 0 ) { v137 = *((double *)this + 171); v138 = v136 - v137; if ( fabsf(v138) > (float)(v6 * 0.5) && ((v139 = *((_DWORD *)this + 328)) != 0 && v136 > 5.0 && v137 < v136 || *((_DWORD *)this + 329) && v136 < -5.0 && v137 > v136) ) { if ( v136 > 50.0 ) { v136 = 50.0; } else if ( v136 < -50.0 ) { v136 = -50.0; } *((double *)this + 172) = v136; if ( v139 && *((double *)this + 275) <= v136 || *((_DWORD *)this + 329) && *((double *)this + 275) >= v136 ) { *((double *)this + 275) = v136; *((_BYTE *)this + 2356) = 1; *((_BYTE *)this + 1850) = 1; } *((_DWORD *)this + 328) = 0; *((_DWORD *)this + 329) = 0; } } if ( !cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 314)) ) *((_DWORD *)this + 328) = 0; if ( !cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 315)) ) *((_DWORD *)this + 329) = 0; } *((_DWORD *)this + 326) = 0; v140 = *v95; if ( *v95 != 0.0 ) *((_QWORD *)this + 257) = *((_QWORD *)this + 266); v141 = (double *)((char *)this + 1352); if ( *((double *)this + 169) == 0.0 || v140 != 0.0 ) { *v141 = v140; *((_BYTE *)this + 1360) = a3; } else if ( *((double *)this + 266) - *((double *)this + 257) >= 0.0333333351 ) { *v141 = 0.0; } *v95 = 0.0; *v123 = *v125; *v125 = 0.0; v142 = *((_QWORD *)this + 171); *((_QWORD *)this + 172) = v142; *((_QWORD *)this + 171) = 0; if ( !v94 ) { LODWORD(v142) = 0; *((_QWORD *)this + 282) = 0; } if ( *((_BYTE *)this + 2036) ) *((_BYTE *)this + 2224) = 0; v143 = (double *)((char *)this + 1936); if ( *((_BYTE *)this + 1944) ) goto LABEL_290; v144 = *((unsigned __int8 *)this + 1945); if ( *((_BYTE *)this + 1945) ) goto LABEL_290; v145 = *((unsigned __int8 *)this + 1959); *((_DWORD *)this + 354) = v144; v146 = *v124; if ( v145 ) { if ( v146 > 2.0 && *v143 < 2.0 ) LODWORD(v142) = PlayerObject::gameEventTriggered(this, 76, v144); if ( *v124 > 7.0 && *v143 < 7.0 ) LODWORD(v142) = PlayerObject::gameEventTriggered(this, 77, 0); if ( *v124 <= 14.0 || *v143 >= 14.0 ) goto LABEL_290; } else { if ( v146 < -2.0 && *v143 > -2.0 ) LODWORD(v142) = PlayerObject::gameEventTriggered(this, 76, 0); if ( *v124 < -7.0 && *v143 > -7.0 ) LODWORD(v142) = PlayerObject::gameEventTriggered(this, 77, 0); if ( *v124 >= -14.0 || *v143 <= -14.0 ) goto LABEL_290; } LODWORD(v142) = PlayerObject::gameEventTriggered(this, 78, 0); LABEL_290: *v143 = *v124; --*((_DWORD *)this + 492); return v142; }
GD Web Decomp Icon

GD Web Decomp

Raw Source