页面跳转的方法二:
box=CCNode::create();
addChild(box,0);
LayerManager::switchLayer(0);
//方法二
box->removeAllChildren();
switch (tag) {
case 0:
{
UpgradeLayer *upgradeLayer=UpgradeLayer::create();
upgradeLayer->setTag(1);
box->addChild(upgradeLayer,0);
//
upgradeLayer->setCountry("wuGuo.png");
upgradeLayer->setStar(3);
upgradeLayer->blinkStar(1);
}
break;
case 1:
{
ResolveLayer* resolveLayer=ResolveLayer::create();
resolveLayer->setTag(1);
box->addChild(resolveLayer,0);
}
break;
case 2:
{
EvolutionLayer* evolutionLayer=EvolutionLayer::create();
evolutionLayer->setTag(1);
box->addChild(evolutionLayer,0);
}
break;
}
vector<HeroVO> vec1=heroProxy->getFieldHero();
vector<HeroVO> vec2=heroProxy->getUnFieldHero();
vector<HeroVO> héros;
heros.insert(heros.end(),vec1.begin(), vec1.end());
heros.insert(heros.end(),vec2.begin(), vec2.end());
//y=(A-C)*B^x+C
//A b c
//蓝 120 1.4 82
//紫 180 1.4 100
//红 200 1.4 95
//金 220 1.4 90