本文整理汇总了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);
}