下面几行源码(cocos2d)
BodyNode *dataA = (BodyNode*) bodyA->GetUserData();
BodyNode *dataB = (BodyNode*) bodyB->GetUserData();
Class p1 = [Tuna class];
Class p2 = [Oilbarrel class];
Class p3 = [Barrelhorizontal class];
if( [dataA isKindOfClass:p1] ||[dataB isKindOfClass:p1]
|| [dataA isKindOfClass:p2] ||[dataB isKindOfClass:p2]
|| [dataA isKindOfClass:p3] ||[dataB isKindOfClass:p3]
)
{
state1 = tBomb1Hit;
}
你能帮我改一下cocos2dx中的上述编码吗?