本文整理汇总了C++中instance_naxxramas::DoUseDoorOrButton方法的典型用法代码示例。如果您正苦于以下问题:C++ instance_naxxramas::DoUseDoorOrButton方法的具体用法?C++ instance_naxxramas::DoUseDoorOrButton怎么用?C++ instance_naxxramas::DoUseDoorOrButton使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类instance_naxxramas
的用法示例。
在下文中一共展示了instance_naxxramas::DoUseDoorOrButton方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateAI
void UpdateAI(const uint32 uiDiff) override
{
m_creature->SelectHostileTarget();
if (!m_uiOverloadTimer && !m_uiSetupTimer && !m_bReapply)
return; // Nothing to do this tick
if (m_uiSetupTimer)
{
if (m_uiSetupTimer <= uiDiff)
{
if (SetupChain())
m_uiSetupTimer = 0;
else
m_uiSetupTimer = 5 * IN_MILLISECONDS;
}
else
m_uiSetupTimer -= uiDiff;
}
if (m_uiOverloadTimer)
{
if (m_uiOverloadTimer <= uiDiff)
{
m_uiOverloadTimer = 0;
m_creature->RemoveAurasDueToSpell(m_bToFeugen ? SPELL_FEUGEN_TESLA_PASSIVE : SPELL_STALAGG_TESLA_PASSIVE);
DoCastSpellIfCan(m_creature, SPELL_SHOCK_OVERLOAD, CAST_INTERRUPT_PREVIOUS);
DoScriptText(EMOTE_TESLA_OVERLOAD, m_creature);
m_pInstance->DoUseDoorOrButton(m_bToFeugen ? GO_CONS_NOX_TESLA_FEUGEN : GO_CONS_NOX_TESLA_STALAGG);
}
else
m_uiOverloadTimer -= uiDiff;
}
if (m_bReapply)
ReApplyChain(0);
}