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


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

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


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

示例1: Aggro

    void Aggro(Unit* /*pWho*/) override
    {
        DoScriptText(SAY_EVIL_AGGRO, m_creature);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_KALECGOS, IN_PROGRESS);
    }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:7,代码来源:boss_kalecgos.cpp

示例2: JustReachedHome

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

            // Reset the corrupt Sunwell aura
            if (Creature* pKiljaedenController = m_pInstance->GetSingleCreatureFromStorage(NPC_KILJAEDEN_CONTROLLER))
                pKiljaedenController->CastSpell(pKiljaedenController, SPELL_ANVEENA_DRAIN, true);

            // Respawn Anveena if necessary
            if (Creature* pAnveena = m_pInstance->GetSingleCreatureFromStorage(NPC_ANVEENA))
            {
                if (!pAnveena->isAlive())
                    pAnveena->Respawn();
            }

            // Despawn Kalec if already summoned
            if (Creature* pKalec = m_pInstance->GetSingleCreatureFromStorage(NPC_KALECGOS, true))
                pKalec->ForcedDespawn();
        }

        // Despawn on wipe
        m_creature->ForcedDespawn();
    }
开发者ID:Bootz,项目名称:StrawberryCore,代码行数:25,代码来源:boss_kiljaeden.cpp

示例3: JustDied

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

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

示例4: JustDied

    void JustDied(Unit* pKiller)
    {
        if (m_pInstance)
            m_pInstance->SetData(TYPE_MURU, DONE);

        // Despawn summoned creatures
        DespawnSummonedCreatures();
    }
开发者ID:Bootz,项目名称:StrawberryCore,代码行数:8,代码来源:boss_muru.cpp

示例5: JustReachedHome

 void JustReachedHome() override
 {
     if (m_pInstance)
     {
         m_pInstance->DoEjectSpectralPlayers();
         m_pInstance->SetData(TYPE_KALECGOS, FAIL);
     }
 }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:8,代码来源:boss_kalecgos.cpp

示例6: Aggro

    void Aggro(Unit* pWho)
    {
        if (m_pInstance)
            m_pInstance->SetData(TYPE_KILJAEDEN, IN_PROGRESS);

        DoScriptText(SAY_EMERGE, m_creature);
        DoCastSpellIfCan(m_creature, SPELL_BIRTH);
    }
开发者ID:Bootz,项目名称:StrawberryCore,代码行数:8,代码来源:boss_kiljaeden.cpp

示例7: JustDied

 void JustDied(Unit* /*pKiller*/) override
 {
     if (m_pInstance)
     {
         m_pInstance->DoEjectSpectralPlayers();
         m_pInstance->SetData(TYPE_KALECGOS, FAIL);
     }
 }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:8,代码来源:boss_kalecgos.cpp

示例8: JustDied

    void JustDied(Unit* /*pKiller*/) override
    {
        if (m_pInstance)
        { m_pInstance->SetData(TYPE_MURU, DONE); }
#if defined (CLASSIC) || defined (TBC)
        // Despawn summoned creatures
        DespawnSummonedCreatures();
#endif
    }
开发者ID:kelemeto76,项目名称:ScriptDev3,代码行数:9,代码来源:boss_muru.cpp

示例9: Aggro

    void Aggro(Unit* pWho) override
    {
        DoCastSpellIfCan(m_creature, SPELL_NOXIOUS_FUMES);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_FELMYST, IN_PROGRESS);

        float fGroundZ = m_creature->GetMap()->GetHeight(m_creature->GetPhaseMask(), m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ());
        m_creature->GetMotionMaster()->MovePoint(PHASE_TRANSITION, pWho->GetPositionX(), pWho->GetPositionY(), fGroundZ, false);
        m_creature->HandleEmote(EMOTE_ONESHOT_LAND);
    }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:11,代码来源:boss_felmyst.cpp

示例10: MovementInform

    void MovementInform(uint32 uiMotionType, uint32 uiPointId) override
    {
        if (uiMotionType != POINT_MOTION_TYPE)
            return;

        if (uiPointId)
        {
            if (m_pInstance)
                m_pInstance->SetData(TYPE_KALECGOS, DONE);

            m_creature->ForcedDespawn(1000);
        }
    }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:13,代码来源:boss_kalecgos.cpp

示例11: JustDied

    void JustDied(Unit* pKiller)
    {
        if (m_pInstance)
        {
            m_pInstance->SetData(TYPE_KILJAEDEN, DONE);

            // Start the outro
            if (Creature* pKiljaedenController = m_pInstance->GetSingleCreatureFromStorage(NPC_KILJAEDEN_CONTROLLER))
            {
                if (npc_kiljaeden_controllerAI* pControllerAI = dynamic_cast<npc_kiljaeden_controllerAI*>(pKiljaedenController->AI()))
                    pControllerAI->DoStartOutroDialogue();
            }
        }
    }
开发者ID:Bootz,项目名称:StrawberryCore,代码行数:14,代码来源:boss_kiljaeden.cpp

示例12: JustReachedHome

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

            // respawn muru
            if (Creature* pMuru = m_pInstance->GetSingleCreatureFromStorage(NPC_MURU))
                pMuru->Respawn();
        }

        // despawn boss and summons for reset
        DespawnSummonedCreatures();
        m_creature->ForcedDespawn();
    }
开发者ID:Bootz,项目名称:StrawberryCore,代码行数:15,代码来源:boss_muru.cpp

示例13: JustReachedHome

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

            // respawn muru
#if defined (CLASSIC) || defined (TBC)
            if (Creature* pMuru = m_pInstance->GetSingleCreatureFromStorage(NPC_MURU))
            { pMuru->Respawn(); }
#endif
#if defined (WOTLK)
            m_creature->SummonCreature(NPC_MURU, afMuruSpawnLoc[0], afMuruSpawnLoc[1], afMuruSpawnLoc[2], afMuruSpawnLoc[3], TEMPSUMMON_DEAD_DESPAWN, 0, true);
#endif
        }

        // despawn boss and summons for reset
#if defined (CLASSIC) || defined (TBC)
        DespawnSummonedCreatures();
#endif
        m_creature->ForcedDespawn();
    }
开发者ID:kelemeto76,项目名称:ScriptDev3,代码行数:22,代码来源:boss_muru.cpp

示例14: JustReachedHome

 void JustReachedHome() override
 {
     if (m_pInstance)
         m_pInstance->SetData(TYPE_FELMYST, FAIL);
 }
开发者ID:conan513,项目名称:mangos-wotlk,代码行数:5,代码来源:boss_felmyst.cpp


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