当前位置: 首页>>代码示例>>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;未经允许,请勿转载。