//
// GameObject::setPosition from 0x10025b0f0 to 0x10025b1ec (252 bytes)
//
// 48 xrefs:
// > PlayerObject::setPosition @ 0x10022b700
// > TeleportPortalObject::setPosition @ 0x100387ae4
// > TeleportPortalObject::setPosition @ 0x100387b2c
// > EndPortalObject::setPosition @ 0x1003feb88
// > ??> @ 0x1007cf940
// > ??> @ 0x1007d0128
// > ??> @ 0x1007d0938
// > ??> @ 0x1007f51a8
// > ??> @ 0x1007f59e0
// > ??> @ 0x1007f61d8
// > ??> @ 0x1007f69d0
// > ??> @ 0x1007f71c8
// > ??> @ 0x1007f79c0
// > ??> @ 0x1007f81b8
// > ??> @ 0x1007f89b0
// > ??> @ 0x1007f9198
// > ??> @ 0x1007f99a8
// > ??> @ 0x1007fa210
// > ??> @ 0x1007faa20
// > ??> @ 0x1007fb230
// > ??> @ 0x1007fba40
// > ??> @ 0x1007fc250
// > ??> @ 0x1007fca60
// > ??> @ 0x1007fd270
// > ??> @ 0x1007fda80
// > ??> @ 0x1007fe290
// > ??> @ 0x1007feaa0
// > ??> @ 0x1007ffb20
// > ??> @ 0x100800348
// > ??> @ 0x100800b70
// > ??> @ 0x100801398
// > ??> @ 0x100801bc0
// > ??> @ 0x1008023d0
// > ??> @ 0x100802be0
// > ??> @ 0x1008033f0
// > ??> @ 0x100803c00
// > ??> @ 0x100804410
// > ??> @ 0x100804c20
// > ??> @ 0x100805430
// > ??> @ 0x100805c40
// > ??> @ 0x100806450
// > ??> @ 0x100806c60
// > ??> @ 0x100807470
// > ??> @ 0x100807c80
// > ??> @ 0x100808490
// > ??> @ 0x100808ca0
// > ??> @ 0x1008094b0
// > ??> @ 0x100809cc0
//
// 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 GameObject::setPosition(GameObject *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCParticleSystemQuad *m_particle; // x0
cocos2d::CCParticleSystemQuad *v5; // x21
__n128 v6; // q0
__n128 v7; // q1
cocos2d::CCSprite *m_glowSprite; // x0
cocos2d::CCSprite *m_colorSprite; // x0
_DWORD v10[6]; // [xsp+8h] [xbp-38h] BYREF
CCSpritePlus::setPosition(a1, a2);
m_particle = a1->m_particle;
if ( m_particle )
{
if ( a1->m_particleOffset.x == 0.0 && a1->m_particleOffset.y == 0.0 )
{
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, const cocos2d::CCPoint *))m_particle->setPosition)(
m_particle,
a2);
}
else
{
cocos2d::CCNode::convertToWorldSpace(a1, &a1->m_particleOffset);
cocos2d::CCNode::convertToWorldSpace(a1, &stru_10086D4E0);
v5 = a1->m_particle;
v6.n128_f32[0] = (float)(a2->x + *(float *)&v10[4]) - *(float *)&v10[2];
v7.n128_f32[0] = (float)(a2->y + *(float *)&v10[5]) - *(float *)&v10[3];
sub_100022980(v6, v7, v10);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD *))v5->setPosition)(v5, v10);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::CCPoint *))m_glowSprite->setPosition)(m_glowSprite, a2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
{
if ( !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::CCPoint *))m_colorSprite->setPosition)(
m_colorSprite,
a2);
}
}