当前位置: 首页>>代码示例>>C++>>正文


C++ LogAddC函数代码示例

本文整理汇总了C++中LogAddC函数的典型用法代码示例。如果您正苦于以下问题:C++ LogAddC函数的具体用法?C++ LogAddC怎么用?C++ LogAddC使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了LogAddC函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: LogAddC

void CKanturu::SetState_TOWER_OF_REFINEMENT()
{
	LogAddC(7, "[ KANTURU ] State(%d) -> TOWER_OF_REFINEMENT", this->m_iKanturuState);
	this->SetKanturuState(KANTURU_STATE_TOWER_OF_REFINEMENT);
	this->m_TowerOfRefinement.SetState(1);
	this->SetKanturuMapAttr(1);
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:7,代码来源:Kanturu.cpp

示例2: PHeadSetBE

BOOL TMonsterAIElement::ApplyElementNightmareWarp(int iIndex, int iTargetIndex, TMonsterAIState * pAIState)
{
	LPOBJ lpObj = &gObj[iIndex];

	BYTE x = this->m_iX;
	BYTE y = this->m_iY;
	PMSG_MAGICATTACK_RESULT pAttack;

	PHeadSetBE((unsigned char *)&pAttack,0x19,sizeof(pAttack));

	pAttack.MagicNumberH = SET_NUMBERH(AT_SKILL_TELEPORT);
	pAttack.MagicNumberL = SET_NUMBERL(AT_SKILL_TELEPORT);

	pAttack.SourceNumberH = SET_NUMBERH(iIndex);
	pAttack.SourceNumberL = SET_NUMBERL(iIndex);
	pAttack.TargetNumberH = SET_NUMBERH(iIndex);
	pAttack.TargetNumberL = SET_NUMBERL(iIndex);

	if ( lpObj->Type == OBJ_USER )
		DataSend(iIndex,(unsigned char *)&pAttack,pAttack.h.size);

	MsgSendV2(lpObj,(unsigned char*)&pAttack,pAttack.h.size);

	LogAddC(2, "[%s] Warp [%d,%d] -> [%d,%d]",
		lpObj->Name, lpObj->X, lpObj->Y, x, y);

	gObjTeleportMagicUse(iIndex,x,y);
	lpObj->TargetNumber = -1;

	return FALSE;
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:31,代码来源:TMonsterAIElement.cpp

示例3: LogAddC

void CKanturuBattleOfNightmare::SetState_NOTIFY()
{
	LogAddC(5, "[ KANTURU ][ BattleOfNightmare ] State(%d) -> NOTIFY",
		this->m_iBattleOfNightmareState);

	this->SetBattleOfNightmareState(KANTURU_NIGHTMARE_NOTIFY);
}
开发者ID:constantinbogdan,项目名称:node3d,代码行数:7,代码来源:KanturuBattleOfNightmare.cpp

示例4: gObjMoveGate

void CKanturu::CheckUserOnKanturuBossMap()
{
	for ( int iCount=OBJ_STARTUSERINDEX;iCount<OBJMAX;iCount++)
	{
		if ( gObj[iCount].Connected == PLAYER_PLAYING &&
			 gObj[iCount].Type == OBJ_USER &&
			 gObj[iCount].MapNumber == MAP_INDEX_KANTURU_BOSS)
		{
#if (GS_CASTLE == 0 || GS_SPEC == 1)
			if ( gObj[iCount].m_bKanturuEntranceByNPC == FALSE )
			{
#endif
				if ( (gObj[iCount].Authority&2) != 2 )
				{
					if ( gObj[iCount].RegenOk == 0 &&
						 gObj[iCount].m_State == 2 &&
						 gObj[iCount].Live == TRUE)
					{
						gObjMoveGate(iCount, 17);

						LogAddC(2, "[ KANTURU ][ Invalid User ] Invalid Kanturu Boss Map User[%s][%s]",
							gObj[iCount].AccountID, gObj[iCount].Name);
					}
				}
#if (GS_CASTLE == 0 || GS_SPEC == 1)
			}
#endif
		}
	}
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:30,代码来源:Kanturu.cpp

示例5: LogAddC

//0060E540 - identical
void CRaklionBattleOfSelupan::SetState_DIE()
{
	LogAddC(5, "[ RAKLION ][ BattleOfSelupan ] State(%d) -> DIE", this->m_iBattleOfSelupanState);
	
	this->m_RaklionSelupan.SelupanAct_BerserkCansel();
	
	this->DeleteSummonMonster();
	
	int aIndex = this->m_RaklionSelupan.GetSelupanTargetIndex();

	LPOBJ lpObj = &gObj[aIndex];

	g_RaklionUtil.SendMsgAllUser(lMsg.Get(3412),lpObj->Name);

	time_t ltime;
	time(&ltime);
	tm * today=localtime(&ltime);

	for ( int i = 0; i < g_RaklionBattleUserMng.GetBattleUserCount(); ++i )
	{
		LogAdd("[Raklion][SelupanDie] %d/%d/%d %d:%d:%d %dth Winner : %s (%s)",
			today->tm_year+1900,today->tm_mon+1,today->tm_mday,today->tm_hour,
			today->tm_min,today->tm_sec,i+1,gObj[g_RaklionBattleUserMng.GetBattleUserIndex(i)].Name,gObj[g_RaklionBattleUserMng.GetBattleUserIndex(i)].AccountID);
	}

	this->SetBattleOfSelupanState(SELUPAN_STATE_DIE);
}
开发者ID:331515194,项目名称:zTeamS6.3,代码行数:28,代码来源:RaklionBattleOfSelupan.cpp

示例6: LogAddC

void CRaklionBattleOfSelupan::SetState_PATTERN_6()
{
	LogAddC(5, "[ RAKLION ][ BattleOfSelupan ] State(%d) -> PATTERN_6 // Life(%d/4800000)", this->m_iBattleOfSelupanState,this->m_RaklionSelupan.GetSelupanLife());
	
	this->m_RaklionSelupan.SelupanAct_Berserk4();
	
	this->SetBattleOfSelupanState(SELUPAN_STATE_PATTERN_6);
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:8,代码来源:RaklionBattleOfSelupan.cpp

示例7: LogAddC

void CKanturu::SetState_BATTLE_STANDBY()
{
	LogAddC(7, "[ KANTURU ] State(%d) -> STANDBY", this->m_iKanturuState);
	g_KanturuBattleUserMng.ResetAllData();
	this->SetKanturuState(KANTURU_STATE_BATTLE_STANTBY);
	this->m_BattleStanby.SetState(1);
	this->SetKanturuTimeAttackEventInfo();
}
开发者ID:Natzugen,项目名称:IGCN---Season-5,代码行数:8,代码来源:Kanturu.cpp

示例8: LogAddC

BOOL TMonsterAIElement::ApplyElementAIChange(int iIndex, int iTargetIndex, TMonsterAIState * pAIState)
{
	TMonsterAIGroup::ChangeAIOrder(this->m_iTargetType, this->m_iX);
	LogAddC(2, "[AI Change] Group %d AI Order %d",
		this->m_iTargetType, this->m_iX);

	return FALSE;
}
开发者ID:AkiraJue,项目名称:OpenMuS9,代码行数:8,代码来源:TMonsterAIElement.cpp

示例9: LogAddC

void CKanturuBattleStanby::SetState_NOTIFY()
{
	LogAddC(5, "[ KANTURU ][ BattleStanby ] State(%d) -> NOTIFY",
		this->m_iBattleStanbyState);

	this->SetBattleStanbyState(KANTURU_STANBY_NOTIFY);
	KANTURU_UTIL.SendMsgKauturuMapUser(lMsg.Get(MSGGET(13, 31)));
}
开发者ID:Natzugen,项目名称:IGCN---Season-5,代码行数:8,代码来源:KanturuBattleStanby.cpp

示例10: LogAddC

void CKanturuTowerOfRefinement::SetState_REVITALIZATION()
{
	LogAddC(5, "[ KANTURU ][ TowerOfRefinement ] State(%d) -> REVITALIZATION",
		this->m_iTowerOfRefinementState);

	this->SetTowerOfRefinementState(KANTURU_TOWER_OF_REFINEMENT_REVITALIZATION);
	this->SetEntrancePermit(TRUE);
	this->SetUseTowerOfRefinement(TRUE);
}
开发者ID:331515194,项目名称:zTeamS6.3,代码行数:9,代码来源:KanturuTowerOfRefinement.cpp

示例11: LogAddC

void CCrywolf::SetState_NOTIFY_1()
{
	UTIL.SendMapServerGroupMsg(lMsg.Get(MSGGET(12, 228)));
	LogAddC(4, "[ Crywolf ] State (%d) -> NOTIFY_1", this->m_iCrywolfState);

	this->SetCrywolfState(CRYWOLF_STATE_NOTIFY_1);
	this->SetCrywolfStateAppliedTime(CRYWOLF_STATE_NOTIFY_1);
	this->m_dwCrywolfNotifyMsgStartTick = GetTickCount();
}
开发者ID:Natzugen,项目名称:IGCN---Season-5,代码行数:9,代码来源:Crywolf.cpp

示例12: memcpy

void CKanturu::SetKanturuMapAttr(BYTE btLevel)
{
	MapClass & KanturuMap = this->m_KanturuMap[btLevel];
	memcpy(MapC[MAP_INDEX_KANTURU_BOSS].m_attrbuf, KanturuMap.m_attrbuf, 256*256);

	LogAddC(2, "[ KANTURU ][ Map Attr Change ] Map(%d) State(%d) DetailState(%d)",
		btLevel, this->GetKanturuState(), this->GetKanturuDetailState());

}
开发者ID:Natzugen,项目名称:IGCN---Season-5,代码行数:9,代码来源:Kanturu.cpp

示例13: ZTLuaManager

float ClassCalc::GetAttackRate(LPOBJ lpUser)
{
    float AttackRate	= 0.0f;

#if (ENABLETEST_ZTLUA == 1)
    ZTLuaManager* LuaMng = new ZTLuaManager(FILE_LUA_CHARACTERBASICS);
    ZTLuaUnit::Bind(LuaMng->getLua());
    ZTLuaItem::Bind(LuaMng->getLua());
    LuaMng->Call("getAttackRate", lpUser->m_Index);
    AttackRate = LuaMng->getRef()->cast<float>();
    ZTLuaManager::Delete(LuaMng);
    return AttackRate;
#else
    if( lpUser->Class >= MAX_TYPE_PLAYER || lpUser->Class < 0 )
    {
        LogAddC(2, "[ClassCalc] [%s] [%s] (GetAttackRate) wrong class (%d)",
                lpUser->AccountID, lpUser->Name, lpUser->Class);
        return 0.0f;
    }
    int Level			= lpUser->Level + lpUser->MasterLevel;
    WORD Class			= lpUser->Class;
    // ----
    if( Class == CLASS_WIZARD || Class == CLASS_DARKLORD )
    {
        AttackRate = (float)(Level * this->m_Data[Class].PvPAttackRateFact1 + lpUser->Dexterity * this->m_Data[Class].PvPAttackRateFact2);
    }
    else if( Class == CLASS_KNIGHT || Class == CLASS_ELF || Class == CLASS_MAGUMSA || Class == CLASS_SUMMONER )
    {
        AttackRate = (float)(Level * this->m_Data[Class].PvPAttackRateFact1  + (lpUser->Dexterity * this->m_Data[Class].PvPAttackRateFact2) / this->m_Data[Class].PvPAttackRateDiv);
    }
    else if( Class == CLASS_FIGHTER )
    {
        AttackRate = (float)(Level * this->m_Data[Class].PvPAttackRateFact1RF + (lpUser->Dexterity * this->m_Data[Class].PvPAttackRateFact2) / this->m_Data[Class].PvPAttackRateDiv);
    }
    // ----
    if( AttackRate <= 0.0f )
    {
        LogAddC(2, "[ClassCalc] [GetAttackRate] [%s][%s] Returned wrong value: %f",
                lpUser->AccountID, lpUser->Name, AttackRate);
    }
    // ----
    return AttackRate;
#endif
}
开发者ID:stimpy76,项目名称:OpenMuS9,代码行数:44,代码来源:ClassCalc.cpp

示例14: LogAddC

void CKanturuTowerOfRefinement::SetState_NOTIFY1()
{
	LogAddC(5, "[Kanturu][TowerOfRefinement] State(%d) -> NOTIFY1",
		this->m_iTowerOfRefinementState);

	this->SetTowerOfRefinementState(KANTURU_TOWER_OF_REFINEMENT_NOTIFY1);
	this->SetEntrancePermit(TRUE);
	this->SetUseTowerOfRefinement(TRUE);
	KANTURU_UTIL.SendMsgKauturuMapUser(lMsg.Get(MSGGET(13, 29)));
}
开发者ID:ADMTec,项目名称:GameServer,代码行数:10,代码来源:KanturuTowerOfRefinement.cpp

示例15: LogAddC

void CRaklionSelupan::SetSelupanSkillDelay(int SkillDelay)
{
	if ( SkillDelay < 0 || SkillDelay > 50000 )
	{
		LogAddC(2,"[ RAKLION ][ SetSelupanSkillDelay ] SkillDelay error : Delay(%d)",this->m_iSelupanSkillDelay);
		return;
	}
	
	this->m_iSelupanSkillDelay = SkillDelay;
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:10,代码来源:RaklionSelupan.cpp


注:本文中的LogAddC函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。