本文整理汇总了C++中PlayerData::resetLevelUp方法的典型用法代码示例。如果您正苦于以下问题:C++ PlayerData::resetLevelUp方法的具体用法?C++ PlayerData::resetLevelUp怎么用?C++ PlayerData::resetLevelUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerData
的用法示例。
在下文中一共展示了PlayerData::resetLevelUp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
X_VOID MainGame::EndBattle(bool win)
{
//------------打开战斗前的界面
m_nGameRunState = RUNING_IN_GAME;
SceneManger::GetSingleton()->EnterScene(SceneManger::EM_SS_MAIN);
if(DataPool::GetSingleton()->BattlyType == EM_COPY_SCENE)
EventSystem::GetSingleton()->PushEvent(GAME_EVENT_LEVELLIST_SHOW);
else if(DataPool::GetSingleton()->BattlyType == EM_SPORT)
EventSystem::GetSingleton()->PushEvent(GAME_EVENT_RANKLIST_SHOW);
else if(DataPool::GetSingleton()->BattlyType == EM_WOODPVP)
{
EventSystem::GetSingleton()->PushEvent(GAME_EVENT_BASE_ACTIVITY_SHOW);
}
else if(DataPool::GetSingleton()->BattlyType == EM_BATTLETYPE_QUJING)
{
vector<string> str;str.clear();
str.push_back(UtilTools::IntToString(EM_HUSONG_WOOD));//
EventSystem::GetSingleton()->PushEvent(GAME_EVENT_CHEESE_SHOW,str);
SendLogicPacket::OpenQuJingUi();
EventSystem::GetSingleton()->PushEvent(GAME_EVNET_LVL_ESCORTWOOD_SHOW);
}
else if(DataPool::GetSingleton()->BattlyType == EM_BATTLETYPE_BLOODBATTLE)
{
BloodData* pBloodData = DataPool::GetSingleton()->GetBloodData();
if (win)
{
pBloodData->NextStep();
}else
{
pBloodData->EnterBloodUi();
}
}
else
EventSystem::GetSingleton()->PushEvent(GAME_EVENT_CHEESE_SHOW);
ObjectManager* pManager = DataPool::GetSingleton()->getObjectManager();
PlayerData* pData = pManager->getSelf()->playerData();
if (pData && pData->IsLevelUp())
{
pData->resetLevelUp();
EventSystem::GetSingleton()->PushEvent(GAME_EVNET_LVL_UPGRADE_SHOW);
}
BattleData * pBattle = DataPool::GetSingleton()->GetBattleData();
pBattle->DestroyBattleData();
}