예제 #1
1
void BombCache::newOneInBuffer()
{
	Bomb* bomb = new Bomb(true);
	bomb->autorelease();
	bufferVec.insert(bufferVec.end(),bomb);
}
예제 #2
0
Bomb* Bomb::createBomb(bool full)
{
    Bomb* b = new Bomb(full);
    
    b->autorelease();
    
    return b;
}
예제 #3
0
Bomb* Bomb::create(Player* player)
{
	Bomb* bomb = new Bomb();
	if (bomb && bomb->init(player))
	{
		return (Bomb*)bomb->autorelease();
	}

	CC_SAFE_DELETE(bomb);

	return bomb;
}
예제 #4
0
Bomb* Bomb::createWithWorld ( b2World* pWorld )
{
    Bomb*		pRet = new Bomb ( );

    if ( pRet && pRet->initWithWorld ( pWorld ) )
    {
        pRet->autorelease ( );
    }
    else
	{
		CC_SAFE_DELETE ( pRet );
	}

    return pRet;
}