本文整理汇总了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;
}
示例2: Reset
void Reset() override
{
Initialize();
_intenseColdList.clear();
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
RemovePrison(CheckContainmentSpheres());
_Reset();
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例9: SetData
void SetData(uint32 type, uint32)
{
if (type == me->GetEntry() && CanRemovePrison())
RemovePrison(true);
}
示例10: Reset
void Reset()
{
BossAI::Reset();
RemovePrison(CanRemovePrison());
aGuids.clear();
}