示例#1
0
MenuLayer* MenuLayer::menuWithEntryID(int entryId)
{
	MenuLayer* pLayer = new MenuLayer();
	pLayer->initWithEntryID(entryId);
	pLayer->autorelease();

	return pLayer;
}
示例#2
0
MenuLayer* MenuLayer::create( GameplayView* view )
{
	MenuLayer* layer = new MenuLayer;
	if (layer && layer->init(view))
	{
		layer->autorelease();
		return layer;
	}
	return NULL;
}
示例#3
0
MenuLayer * MenuLayer::createScene(int Tag) {
    MenuLayer *pRet = new (std::nothrow) MenuLayer();
    if (pRet&&pRet->init(Tag)) {
        pRet->autorelease();
        return pRet;
    }
    else
    {
        delete pRet;
        pRet = NULL;
        return NULL;
    }

}