本文整理匯總了C++中GetForgeMasterType函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetForgeMasterType函數的具體用法?C++ GetForgeMasterType怎麽用?C++ GetForgeMasterType使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了GetForgeMasterType函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: Reset
void Reset()
{
if (fm_Type == 0)
fm_Type = GetForgeMasterType();
CheckForge();
}
示例2: JustDied
void JustDied(Unit* /*killer*/) override
{
if (!_forgeId)
_forgeId = GetForgeMasterType();
if (_forgeId)
_instance->SetData(DATA_FORGE_1 + _forgeId - 1, DONE);
}
示例3: UpdateAI
void UpdateAI(const uint32 /*diff*/)
{
if(fm_Type == 0)
fm_Type = GetForgeMasterType();
if(!UpdateVictim())
return;
DoMeleeAttackIfReady();
}
示例4: UpdateAI
void UpdateAI(uint32 /*diff*/) override
{
if (!_forgeId)
_forgeId = GetForgeMasterType();
if (!UpdateVictim())
return;
DoMeleeAttackIfReady();
}
示例5: EnterCombat
void EnterCombat(Unit* /*who*/) override
{
if (!_forgeId)
_forgeId = GetForgeMasterType();
if (_forgeId)
_instance->SetData(DATA_FORGE_1 + _forgeId - 1, IN_PROGRESS);
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
}
示例6: Reset
void Reset() override
{
if (!_forgeId)
_forgeId = GetForgeMasterType();
if (!me->IsAlive())
return;
if (_forgeId)
_instance->SetData(DATA_FORGE_1 + _forgeId - 1, NOT_STARTED);
}
示例7: JustDied
void JustDied(Unit* /*pKiller*/)
{
if(fm_Type == 0) fm_Type = GetForgeMasterType();
if(pInstance)
{
switch(fm_Type)
{
case 1:
pInstance->SetData(EVENT_FORGE_1,DONE);
break;
case 2:
pInstance->SetData(EVENT_FORGE_2,DONE);
break;
case 3:
pInstance->SetData(EVENT_FORGE_3,DONE);
break;
}
}
}
示例8: EnterCombat
void EnterCombat(Unit* /*pWho*/)
{
if(fm_Type == 0) fm_Type = GetForgeMasterType();
if(pInstance)
{
switch(fm_Type)
{
case 1:
pInstance->SetData(EVENT_FORGE_1,IN_PROGRESS);
break;
case 2:
pInstance->SetData(EVENT_FORGE_2,IN_PROGRESS);
break;
case 3:
pInstance->SetData(EVENT_FORGE_3,IN_PROGRESS);
break;
}
}
me->SetUInt32Value(UNIT_NPC_EMOTESTATE,EMOTE_ONESHOT_NONE);
}