本文整理汇总了C++中CKanturuUtil::NotifyKanturuCurrentState方法的典型用法代码示例。如果您正苦于以下问题:C++ CKanturuUtil::NotifyKanturuCurrentState方法的具体用法?C++ CKanturuUtil::NotifyKanturuCurrentState怎么用?C++ CKanturuUtil::NotifyKanturuCurrentState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKanturuUtil
的用法示例。
在下文中一共展示了CKanturuUtil::NotifyKanturuCurrentState方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: NotifyResultEnterKanturuBossMap
void CKanturuEntranceNPC::NotifyResultEnterKanturuBossMap(int iIndex)
{
if ( !gObjIsConnected(iIndex))
{
return;
}
LPOBJ lpObj = &gObj[iIndex];
BOOL bMoveGateSuccess = FALSE;
int iResult = g_Kanturu.CheckEnterKanturu(iIndex);
if ( iResult == 0 )
{
int iCurrentState = g_Kanturu.GetKanturuState();
if ( iCurrentState == KANTURU_STATE_BATTLE_OF_MAYA )
{
bMoveGateSuccess = gObjMoveGate(iIndex, 133);
if ( bMoveGateSuccess ==TRUE )
{
g_KanturuBattleUserMng.AddUserData(iIndex);
LogAddTD("[Kanturu][BattleUser] Add User [%s][%s] Current Battle User:%d State:[%d-%d] (CharInfoSave : Class=%d, Level=%d, LvPoint=%d, Exp=%u, Str=%d, Dex=%d, Vit=%d, Energy=%d, LeaderShip=%d, Map=%d, Pk=%d",
gObj[iIndex].AccountID, gObj[iIndex].Name,
g_KanturuBattleUserMng.GetUserCount(), g_Kanturu.GetKanturuState(),
g_Kanturu.GetKanturuDetailState(),
gObj[iIndex].Class, gObj[iIndex].Level, gObj[iIndex].LevelUpPoint,
gObj[iIndex].Experience, gObj[iIndex].Strength, gObj[iIndex].Dexterity,
gObj[iIndex].Vitality, gObj[iIndex].Energy, gObj[iIndex].Leadership,
gObj[iIndex].MapNumber, gObj[iIndex].m_PK_Level);
KANTURU_UTIL.NotifyKanturuCurrentState(iIndex,
g_Kanturu.GetKanturuState(),g_Kanturu.GetKanturuDetailState());
gObj[iIndex].m_bKanturuEntranceByNPC = 1;
}
}
else if ( iCurrentState == KANTURU_STATE_TOWER_OF_REFINEMENT )
{
bMoveGateSuccess = gObjMoveGate(iIndex, 135);
KANTURU_UTIL.NotifyKanturuCurrentState(iIndex,
g_Kanturu.GetKanturuState(),g_Kanturu.GetKanturuDetailState());
gObj[iIndex].m_bKanturuEntranceByNPC = 1;
}
else
{
LogAddTD("[Kanturu][BossMapMove] Error - State(%d) Character[%s][%s]",
iCurrentState, lpObj->AccountID, lpObj->Name);
}
}
else
{
KANTURU_UTIL.NotifyKanturuEntranceReqResult(iIndex, iResult);
LogAddTD("[Kanturu][BossMapMove] Fail - Result(%d) Character[%s][%s]",
iResult, lpObj->AccountID, lpObj->Name);
gObj[iIndex].m_bKanturuEntranceByNPC = 0;
}
}