//
// GameObject::setPosition from 0x140197b60 to 0x140197cca (362 bytes)
//
// 50 xrefs:
// > EndPortalObject::setPosition @ 0x140138279
// > PlayerObject::setPosition @ 0x14039c67f
// > TeleportPortalObject::setPosition @ 0x1404b23db
// > TeleportPortalObject::setPosition @ 0x1404b242a
// > ??> @ 0x140556468
// > ??> @ 0x14055dc10
// > ??> @ 0x14055e290
// > ??> @ 0x14060d4b8
// > ??> @ 0x14060de08
// > ??> @ 0x14060e528
// > ??> @ 0x14060ed60
// > ??> @ 0x14060f408
// > ??> @ 0x14060fad8
// > ??> @ 0x140610190
// > ??> @ 0x1406108d8
// > ??> @ 0x140611870
// > ??> @ 0x140612058
// > ??> @ 0x140612700
// > ??> @ 0x140612da8
// > ??> @ 0x140613518
// > ??> @ 0x140613bc0
// > ??> @ 0x1406143a8
// > ??> @ 0x140614be0
// > ??> @ 0x140615328
// > ??> @ 0x1406159d0
// > ??> @ 0x140616118
// > ??> @ 0x1406168d8
// > ??> @ 0x140616f80
// > ??> @ 0x140617628
// > ??> @ 0x140617d98
// > ??> @ 0x140618440
// > ??> @ 0x140618b88
// > ??> @ 0x140619628
// > ??> @ 0x140619cd0
// > ??> @ 0x14061a378
// > ??> @ 0x14061aa98
// > ??> @ 0x14061b140
// > ??> @ 0x14061b888
// > ??> @ 0x14061c020
// > ??> @ 0x14061c6c8
// > ??> @ 0x14061cd70
// > ??> @ 0x14061d418
// > ??> @ 0x14061dac0
// > ??> @ 0x14061e168
// > ??> @ 0x14061e810
// > ??> @ 0x14061f020
// > ??> @ 0x14061f7b8
// > ??> @ 0x140678d78
// > ??> @ 0x140678d88
// > ??> @ 0x1406cbaa8
//
// 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 GameObject::setPosition(GameObject *a1, const cocos2d::CCPoint *a2)
{
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
cocos2d::CCParticleSystemQuad *m_particle; // rcx
float x; // xmm0_4
cocos2d::CCParticleSystemQuad_vtbl *v8; // rbx
const cocos2d::CCPoint *v9; // rax
cocos2d::CCSprite *m_glowSprite; // rcx
cocos2d::CCSprite *m_colorSprite; // rcx
struct cocos2d::CCPoint v12; // [rsp+40h] [rbp+8h] BYREF
struct cocos2d::CCPoint v13; // [rsp+50h] [rbp+18h] BYREF
cocos2d::CCSprite::setPosition(a1, a2);
if ( a1->m_hasFollower )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);
v5->__vftable[2].encodeWithCoder(v5, (DS_Dictionary *)a2);
}
}
m_particle = a1->m_particle;
if ( m_particle )
{
x = a1->m_particleOffset.x;
if ( x == 0.0 && (x = a1->m_particleOffset.y, x == 0.0) )
{
m_particle->setPosition_0(m_particle, a2);
}
else
{
cocos2d::CCNode::convertToWorldSpace(a1, &v12);
cocos2d::CCNode::convertToWorldSpace(a1, &v13);
v8 = a1->m_particle->__vftable;
cocos2d::CCPoint::CCPoint(x, (float)(v12.x + a2->x) - v13.x);
v8->setPosition_0(a1->m_particle, v9);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
m_glowSprite->setPosition_0(m_glowSprite, a2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
{
if ( !a1->m_colorSpriteLocked )
m_colorSprite->setPosition_0(m_colorSprite, a2);
}
}