本文整理汇总了C++中AppDelegate::SaveGamePassLevel方法的典型用法代码示例。如果您正苦于以下问题:C++ AppDelegate::SaveGamePassLevel方法的具体用法?C++ AppDelegate::SaveGamePassLevel怎么用?C++ AppDelegate::SaveGamePassLevel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppDelegate
的用法示例。
在下文中一共展示了AppDelegate::SaveGamePassLevel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: gamewin
void MultiPriceMatch::gamewin(){
long curscore = m_iUserTotalScore;
AppDelegate *app = (AppDelegate*)Application::getInstance();
this->unschedule(schedule_selector(MultiPriceMatch::updateTimeLabel));
int score = 0;
int ttlseconds = _gametime / 60;
//std::string strSKU = "1400039210";
//app->setPromoteProduct("");
//if(app->getGameLevelPassedInfo() == 0){
// if (ttlseconds > 60 && ttlseconds <= 90){
// score = WIN_POINT_HIG;
// }else if(ttlseconds > 30 && ttlseconds <= 60){
// score = WIN_POINT_MED;
// }else{rea
// score = WIN_POINT_LOW;
// }
//}else{
// score = WIN_POINT_LOW;
//}
//_gamestatus = GAME_OVER;
_vec_circle.clear();
_vec_circle2.clear();
// AppDelegate *app = (AppDelegate*)Application::getInstance();
if(app->iGameMode == MobileGameMode::Theme_Mode){
app->GameRunRoundNext();
}else{
//app->UpdateUserScore(1,score);
//app->setReward(score);
app->updateGameWinScore(ttlseconds);
app->SaveGamePassLevel();//Add by Long to Save Level
app->moveToNextGameLevel();
this->scheduleOnce(schedule_selector(MultiPriceMatch::delayWinQuit),1.0f);
//auto scene = GameWin::createScene();
//if(scene != nullptr){
// TransitionScene *transition = TransitionFade::create(1, scene);
// Director::getInstance()->replaceScene(transition);
//}
}
}