當前位置: 首頁>>代碼示例>>C++>>正文


C++ AttackStartNoMove函數代碼示例

本文整理匯總了C++中AttackStartNoMove函數的典型用法代碼示例。如果您正苦於以下問題:C++ AttackStartNoMove函數的具體用法?C++ AttackStartNoMove怎麽用?C++ AttackStartNoMove使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了AttackStartNoMove函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: AttackStart

 void AttackStart(Unit* who)
 {
     if (Phase1)
         AttackStartNoMove(who);
     else
         ScriptedAI::AttackStart(who);
 }
開發者ID:Drethek,項目名稱:Darkpeninsula-Cata-Old,代碼行數:7,代碼來源:boss_alar.cpp

示例2: AttackStartNoMove

void ScriptedAI::AttackStart(Unit* who)
{
    if (IsCombatMovementAllowed())
        CreatureAI::AttackStart(who);
    else
        AttackStartNoMove(who);
}
開發者ID:StormDev2ofiical,項目名稱:CoreStorm,代碼行數:7,代碼來源:ScriptedCreature.cpp

示例3: AttackStart

 void AttackStart(Unit* pWho)
 {
     if (!pWho)
         return;
     
     AttackStartNoMove(pWho);
 }
開發者ID:Archives,項目名稱:ro_core,代碼行數:7,代碼來源:zuldrak.cpp

示例4: DoMeleeAttackIfReady

 void DoMeleeAttackIfReady()
 {
     if (me->isAttackReady() && !me->IsNonMeleeSpellCasted(false))
     {
         if (me->IsWithinMeleeRange(me->getVictim()))
         {
             me->AttackerStateUpdate(me->getVictim());
             me->resetAttackTimer();
         }
         else
         {
             Unit *pTarget = NULL;
             pTarget = me->SelectNearestTarget(5);
             if (pTarget)
             {
                 if (Phase1)
                     AttackStartNoMove(pTarget);
                 else
                     ScriptedAI::AttackStart(pTarget);
             }
             else
             {
                 me->CastSpell(me, SPELL_FLAME_BUFFET, true);
                 me->setAttackTimer(BASE_ATTACK, 3000);
             }
         }
     }
 }
開發者ID:LORDofDOOM,項目名稱:MMOTBC,代碼行數:28,代碼來源:boss_alar.cpp

示例5: AttackStart

        void AttackStart(Unit* who)
        {
            if (!who)
                return;

            AttackStartNoMove(who);
        }
開發者ID:Jildor,項目名稱:4.3.4-Core,代碼行數:7,代碼來源:boss_grand_vizier_ertan.cpp

示例6: AttackStart

 void AttackStart(Unit* who)
 {
     if (!Intro && !Flying)
         if (Phase == 1)
             ScriptedAI::AttackStart(who);
         else
             AttackStartNoMove(who);
 }
開發者ID:Amara1231,項目名稱:blizzlikecore,代碼行數:8,代碼來源:boss_nightbane.cpp

示例7: MoveInLineOfSight

 void MoveInLineOfSight(Unit *who)
 {
     if (!Intro && !Flying)
         if (!me->getVictim() && me->canStartAttack(who))
             if (Phase == 1)
                 ScriptedAI::AttackStart(who);
             else
                 AttackStartNoMove(who);
 }
開發者ID:Amara1231,項目名稱:blizzlikecore,代碼行數:9,代碼來源:boss_nightbane.cpp

示例8: SentryDownBy

 void SentryDownBy(Unit* pKiller)
 {
     if (sentryDown)
     {
         AttackStartNoMove(pKiller);
         sentryDown = false;
     }
     else
         sentryDown = true;
 }
開發者ID:Archives,項目名稱:ro_core,代碼行數:10,代碼來源:boss_vazruden_the_herald.cpp

示例9: AttackStartNoMove

void ScriptedAI::AttackStart(Unit* pWho, bool melee)
{
    if (!pWho)
        return;

    if (!melee)
        AttackStartNoMove(pWho);
    else
        AttackStart(pWho);
}
開發者ID:ekzobam,項目名稱:HGCore,代碼行數:10,代碼來源:sc_creature.cpp

示例10: JustSummoned

 void JustSummoned(Creature *summoned)
 {
     if (!summoned) return;
     Unit *victim = m_creature->getVictim();
     if (summoned->GetEntry() == ENTRY_NAZAN)
     {
         CAST_AI(boss_nazanAI, summoned->AI())->VazrudenGUID = VazrudenGUID;
         summoned->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
         summoned->SetSpeed(MOVE_FLIGHT, 2.5);
         if (victim)
             AttackStartNoMove(victim);
     }
     else if (victim)
         summoned->AI()->AttackStart(victim);
 }
開發者ID:Ickybad,項目名稱:diamondcore2,代碼行數:15,代碼來源:boss_vazruden_the_herald.cpp

示例11: MoveInLineOfSight

        void MoveInLineOfSight(Unit* who) override
        {
            if (!who)
                return;

            if (me->IsInCombat())
                return;

            if (who->GetTypeId() != TYPEID_PLAYER)
                return;

            if (me->GetDistance(who) > 50.0f)
                return;

            AttackStartNoMove(who);
        }
開發者ID:Clementon,項目名稱:ElunaTrinityCata,代碼行數:16,代碼來源:boss_reliquary_of_souls.cpp

示例12: JustSummoned

 void JustSummoned(Creature* summoned) override
 {
     if (!summoned)
         return;
     Unit* victim = me->GetVictim();
     if (summoned->GetEntry() == NPC_NAZAN)
     {
         summoned->SetDisableGravity(true);
         summoned->SetSpeed(MOVE_FLIGHT, 2.5f);
         if (victim)
             AttackStartNoMove(victim);
     }
     else
         if (victim)
             summoned->AI()->AttackStart(victim);
 }
開發者ID:DSlayerMan,項目名稱:ArkCORE-NG,代碼行數:16,代碼來源:boss_vazruden_the_herald.cpp

示例13: JustSummoned

 void JustSummoned(Creature* pSummoned)
 {
     if (!pSummoned)
         return;
     Unit* pVictim = me->getVictim();
     if (pSummoned->GetEntry() == ENTRY_NAZAN)
     {
         CAST_AI(boss_nazan::boss_nazanAI, pSummoned->AI())->VazrudenGUID = VazrudenGUID;
         pSummoned->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
         pSummoned->SetSpeed(MOVE_FLIGHT, 2.5f);
         if (pVictim)
             AttackStartNoMove(pVictim);
     }
     else if (pVictim)
         pSummoned->AI()->AttackStart(pVictim);
 }
開發者ID:Nedj,項目名稱:TrinityCore,代碼行數:16,代碼來源:boss_vazruden_the_herald.cpp

示例14: JustSummoned

 void JustSummoned(Creature* summoned)
 {
     if (!summoned)
         return;
     Unit* victim = me->GetVictim();
     if (summoned->GetEntry() == ENTRY_NAZAN)
     {
         CAST_AI(boss_nazan::boss_nazanAI, summoned->AI())->VazrudenGUID = VazrudenGUID;
         summoned->SetDisableGravity(true);
         summoned->SetSpeed(MOVE_FLIGHT, 2.5f);
         if (victim)
             AttackStartNoMove(victim);
     }
     else
         if (victim)
             summoned->AI()->AttackStart(victim);
 }
開發者ID:P-Kito,項目名稱:InfinityCore,代碼行數:17,代碼來源:boss_vazruden_the_herald.cpp

示例15: AttackStart

		void AttackStart(Unit* who)
        {
			AttackStartNoMove(who);
        }
開發者ID:boom8866,項目名稱:new,代碼行數:4,代碼來源:world_rare_elite_scripts.cpp


注:本文中的AttackStartNoMove函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。