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


C++ instance_naxxramas::SetData方法代码示例

本文整理汇总了C++中instance_naxxramas::SetData方法的典型用法代码示例。如果您正苦于以下问题:C++ instance_naxxramas::SetData方法的具体用法?C++ instance_naxxramas::SetData怎么用?C++ instance_naxxramas::SetData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在instance_naxxramas的用法示例。


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

示例1: JustDied

    void JustDied(Unit* /*pKiller*/)
    {
        DoScriptText(SAY_DEATH, m_creature);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_GOTHIK, DONE);
    }
开发者ID:Phatcat,项目名称:mangos,代码行数:7,代码来源:boss_gothik.cpp

示例2: JustReachedHome

    void JustReachedHome() override
    {
        if (m_pInstance)
            m_pInstance->SetData(TYPE_GLUTH, FAIL);

        DoCastSpellIfCan(m_creature, SPELL_DOUBLE_ATTACK, CAST_TRIGGERED | CAST_AURA_NOT_PRESENT);
    }
开发者ID:Phatcat,项目名称:mangos-wotlk,代码行数:7,代码来源:boss_gluth.cpp

示例3: Aggro

    void Aggro(Unit* /*pWho*/) override
    {
        DoCastSpellIfCan(m_creature, m_bIsRegularMode ? SPELL_FROST_AURA : SPELL_FROST_AURA_H);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_SAPPHIRON, IN_PROGRESS);
    }
开发者ID:AwkwardDev,项目名称:mangos-d3,代码行数:7,代码来源:boss_sapphiron.cpp

示例4: JustDied

    void JustDied(Unit* /*pKiller*/) override
    {
        DoScriptText(SAY_DEATH, m_creature);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_FAERLINA, DONE);
    }
开发者ID:jviljoen82,项目名称:ScriptDev3,代码行数:7,代码来源:boss_faerlina.cpp

示例5: JustReachedHome

 void JustReachedHome() override
 {
     if (m_pInstance)
     {
         m_pInstance->SetData(TYPE_MAEXXNA, FAIL);
     }
 }
开发者ID:lucasdnd,项目名称:mangoszero-bots-test,代码行数:7,代码来源:boss_maexxna.cpp

示例6: Aggro

    void Aggro(Unit* /*pWho*/) override
    {
        DoScriptText(urand(0, 1) ? SAY_AGGRO1 : SAY_AGGRO2, m_creature);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_PATCHWERK, IN_PROGRESS);
    }
开发者ID:ROKB,项目名称:scriptdev2-classic,代码行数:7,代码来源:boss_patchwerk.cpp

示例7: Aggro

 void Aggro(Unit* /*pWho*/) override
 {
     if (m_pInstance)
     {
         m_pInstance->SetData(TYPE_MAEXXNA, IN_PROGRESS);
     }
 }
开发者ID:lucasdnd,项目名称:mangoszero-bots-test,代码行数:7,代码来源:boss_maexxna.cpp

示例8: JustDied

 void JustDied(Unit* /*pKiller*/) override
 {
     if (m_pInstance)
     {
         m_pInstance->SetData(TYPE_MAEXXNA, DONE);
     }
 }
开发者ID:lucasdnd,项目名称:mangoszero-bots-test,代码行数:7,代码来源:boss_maexxna.cpp

示例9: JustDied

    void JustDied(Unit* /*pKiller*/) override
    {
        DoScriptText(SAY_DEATH, m_creature);
        DespawnAdds();

        if (m_pInstance)
            m_pInstance->SetData(TYPE_KELTHUZAD, DONE);
    }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:8,代码来源:boss_kelthuzad.cpp

示例10: ProcessCentralDoor

 void ProcessCentralDoor()
 {
     if (IsCentralDoorClosed())
     {
         m_pInstance->SetData(TYPE_GOTHIK, SPECIAL);
         DoScriptText(EMOTE_GATE, m_creature);
     }
 }
开发者ID:Phatcat,项目名称:mangos,代码行数:8,代码来源:boss_gothik.cpp

示例11: Aggro

    void Aggro(Unit* /*pWho*/) override
    {

        DoScriptText(SAY_AGGRO_1, m_creature);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_FAERLINA, IN_PROGRESS);
    }
开发者ID:killerwife,项目名称:mangos-tbc,代码行数:8,代码来源:boss_faerlina.cpp

示例12: JustReachedHome

    void JustReachedHome() override
    {
        DespawnIntroCreatures();
        DespawnAdds();

        if (m_pInstance)
            m_pInstance->SetData(TYPE_KELTHUZAD, NOT_STARTED);
    }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:8,代码来源:boss_kelthuzad.cpp

示例13: JustDied

    void JustDied(Unit* /*pKiller*/) override
    {
        DoScriptText(SAY_DEATH, m_creature);

        DoCastSpellIfCan(m_creature, SPELL_HOPELESS, CAST_TRIGGERED);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_RAZUVIOUS, DONE);
    }
开发者ID:sidsukana,项目名称:mangos-classic,代码行数:9,代码来源:boss_razuvious.cpp

示例14: Aggro

    void Aggro(Unit* /*pWho*/) override
    {
        switch (urand(0, 2))
        {
            case 0: DoScriptText(SAY_AGGRO1, m_creature); break;
            case 1: DoScriptText(SAY_AGGRO2, m_creature); break;
            case 2: DoScriptText(SAY_AGGRO3, m_creature); break;
        }

        if (m_pInstance)
            m_pInstance->SetData(TYPE_ANUB_REKHAN, IN_PROGRESS);
    }
开发者ID:mynew4,项目名称:RustEmu-Core,代码行数:12,代码来源:boss_anubrekhan.cpp

示例15: Aggro

    void Aggro(Unit* /*pWho*/)
    {
        if (!m_pInstance)
            return;

        m_pInstance->SetData(TYPE_GOTHIK, IN_PROGRESS);

        // Make immune
        m_creature->ApplySpellImmune(0, IMMUNITY_DAMAGE, SPELL_SCHOOL_MASK_ALL, true);

        m_pInstance->SetGothTriggers();
        PrepareSummonPlaces();
    }
开发者ID:Phatcat,项目名称:mangos,代码行数:13,代码来源:boss_gothik.cpp


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