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


C++ RemovePrison函数代码示例

本文整理汇总了C++中RemovePrison函数的典型用法代码示例。如果您正苦于以下问题:C++ RemovePrison函数的具体用法?C++ RemovePrison怎么用?C++ RemovePrison使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: CheckSpheres

            bool CheckSpheres()
            {
                for (uint8 i = 0; i < 2; ++i)
                    if (!instance->GetData(DATA_SPHERE_1 + i))
                        return false;

                RemovePrison();
                return true;
            }
开发者ID:Refuge89,项目名称:TrinityCore,代码行数:9,代码来源:boss_prince_taldaram.cpp

示例2: Reset

            void Reset() override
            {
                Initialize();
                _intenseColdList.clear();

                me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);

                RemovePrison(CheckContainmentSpheres());
                _Reset();
            }
开发者ID:Carbenium,项目名称:TrinityCore,代码行数:10,代码来源:boss_keristrasza.cpp

示例3: Reset

        void Reset() override
        {
            Initialize();
            intenseColdList.clear();

            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);

            RemovePrison(CheckContainmentSpheres());

            instance->SetData(DATA_KERISTRASZA_EVENT, NOT_STARTED);
        }
开发者ID:Archarean,项目名称:TrinityCore,代码行数:11,代码来源:boss_keristrasza.cpp

示例4: CheckContainmentSpheres

 bool CheckContainmentSpheres(bool removePrison = false)
 {
     for (uint32 i = ANOMALUS_CONTAINMET_SPHERE; i < (ANOMALUS_CONTAINMET_SPHERE + DATA_CONTAINMENT_SPHERES); ++i)
     {
         GameObject* containmentSpheres = ObjectAccessor::GetGameObject(*me, instance->GetGuidData(i));
         if (!containmentSpheres || containmentSpheres->GetGoState() != GO_STATE_ACTIVE)
             return false;
     }
     if (removePrison)
         RemovePrison(true);
     return true;
 }
开发者ID:Carbenium,项目名称:TrinityCore,代码行数:12,代码来源:boss_keristrasza.cpp

示例5: Reset

        void Reset()
        {
            uiCrystalfireBreathTimer = 10*IN_MILLISECONDS;
            uiCrystalChainsTimer = 20*IN_MILLISECONDS;
            uiCrystalizeTimer = urand(10*IN_MILLISECONDS, 15*IN_MILLISECONDS);
            uiTailSweepTimer = 5*IN_MILLISECONDS;
            bEnrage = false;

            lIntenseColdPlayers.clear();
            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);

            RemovePrison(CheckContainmentSpheres());

            if (pInstance)
                pInstance->SetData(DATA_KERISTRASZA_EVENT, NOT_STARTED);
        }
开发者ID:Expecto,项目名称:chaoscore,代码行数:16,代码来源:boss_keristrasza.cpp

示例6: Reset

        void Reset()
        {
            uiCrystalfireBreathTimer = 14*IN_MILLISECONDS;
            uiCrystalChainsCrystalizeTimer = DUNGEON_MODE(30*IN_MILLISECONDS, 11*IN_MILLISECONDS);
            uiTailSweepTimer = 5*IN_MILLISECONDS;
            bEnrage = false;

            intenseCold = true;
            intenseColdList.clear();

            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);

            RemovePrison(CheckContainmentSpheres());

            instance->SetBossState(DATA_KERISTRASZA, NOT_STARTED);
        }
开发者ID:Cailiaock,项目名称:5.4.7-Wow-source,代码行数:16,代码来源:boss_keristrasza.cpp

示例7: CheckContainmentSpheres

            bool CheckContainmentSpheres(bool remove_prison = false)
            {
                ContainmentSphereGUIDs[0] = instance->GetGuidData(ANOMALUS_CONTAINMENT_SPHERE);
                ContainmentSphereGUIDs[1] = instance->GetGuidData(ORMOROKS_CONTAINMENT_SPHERE);
                ContainmentSphereGUIDs[2] = instance->GetGuidData(TELESTRAS_CONTAINMENT_SPHERE);

                for (uint8 i = 0; i < DATA_CONTAINMENT_SPHERES; ++i)
                {
                    GameObject* ContainmentSphere = ObjectAccessor::GetGameObject(*me, ContainmentSphereGUIDs[i]);
                    if (!ContainmentSphere)
                        return false;
                    if (ContainmentSphere->GetGoState() != GO_STATE_ACTIVE)
                        return false;
                }
                if (remove_prison)
                    RemovePrison(true);
                return true;
            }
开发者ID:ElunaLuaEngine,项目名称:ElunaTrinityWotlk,代码行数:18,代码来源:boss_keristrasza.cpp

示例8: CheckSpheres

    bool CheckSpheres()
    {
        if(!pInstance)
            return false;
        uiSphereGuids[0] = pInstance->GetData64(DATA_SPHERE1);
        uiSphereGuids[1] = pInstance->GetData64(DATA_SPHERE2);

        GameObject *pSpheres[2];
        for (uint8 i=0; i < 2; ++i)
        {
            pSpheres[i] = pInstance->instance->GetGameObject(uiSphereGuids[i]);
            if (!pSpheres[i])
                return false;
            if (pSpheres[i]->GetGoState() != GO_STATE_ACTIVE)
                return false;
        }
        RemovePrison();
        return true;
    }
开发者ID:LordVoldemort,项目名称:Shindorei,代码行数:19,代码来源:boss_prince_taldaram.cpp

示例9: SetData

			void SetData(uint32 type, uint32)
			{
				if (type == me->GetEntry() && CanRemovePrison())
					RemovePrison(true);
			}
开发者ID:AlexHjelm,项目名称:sunwell,代码行数:5,代码来源:boss_keristrasza.cpp

示例10: Reset

			void Reset()
			{
				BossAI::Reset();
				RemovePrison(CanRemovePrison());
				aGuids.clear();
			}
开发者ID:AlexHjelm,项目名称:sunwell,代码行数:6,代码来源:boss_keristrasza.cpp


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