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


C# BattleMap.attackSearch方法代码示例

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


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

示例1: ai_attackUnit

 // Attacks the unit
 public virtual void ai_attackUnit(Unit unit, BattleMap map, AttackInfo info, bool isUncontrollable)
 {
     map.attackSearch(unit.mapPos[0], unit.mapPos[1], info.range[0], info.range[1]);
     System.Threading.Thread.Sleep(1000);
     map.gstate.attackDecisionGui.open(ref info);
     System.Threading.Thread.Sleep(2500);
     game.gui.close("attack_decision");
     map.gstate.stage=	0;
     map.makeUnitAttack(map.getFullUnitID(unit.mapPos), map.getUnitX(info.defenderID), map.getUnitY(info.defenderID), ref info);
 }
开发者ID:pgonzbecer,项目名称:Conquest,代码行数:11,代码来源:Profession.cs

示例2: showSkillRange

        // Shows the range of the skill given it's id
        public override void showSkillRange(string skillID, Unit unit, ref BattleMap map)
        {
            // Variables
            int[]	range=	((hasPassive("archer")) ? new int[]{2, 2} : new int[]{1, 1});

            switch(skillID)
            {
                case "basic_attack":
                case "arm_thrust":
                case "provoke":
                case "powerbreak":
                case "magicbreak":
                case "speedbreak":
                case "mega_swing":
                    if(hasPassive("pikeman"))
                        map.attackSearchStraightLine(unit.mapPos[0], unit.mapPos[1], 2);
                    else
                        map.attackSearch(unit.mapPos[0], unit.mapPos[1], range[0], range[1]);
                    break;
                case "headbutt":
                    map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 1);
                    break;
                case "first_aid":
                    map.healSearch(unit.mapPos[0], unit.mapPos[1], 0, 1);
                    break;
                case "rally_force":
                    map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 0);
                    break;
            }
        }
开发者ID:pgonzbecer,项目名称:Conquest,代码行数:31,代码来源:Soldier.cs

示例3: showSkillRange

 // Shows the range of the skill given it's id
 public override void showSkillRange(string skillID, Unit unit, ref BattleMap map)
 {
     switch(skillID)
     {
         case "meditation":
         case "hone_skill":
             map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 0);
             break;
         case "basic_attack":
         case "precise_strike":
         case "sun\'s_might":
         case "serpent\'s_sting":
         case "vigilant_strike":
         case "lethal_strike":
             map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 1);
             break;
     }
 }
开发者ID:pgonzbecer,项目名称:Conquest,代码行数:19,代码来源:Samurai.cs

示例4: showSkillRange

 // Shows the range of the skill given it's id
 public virtual void showSkillRange(string skillID, Unit unit, ref BattleMap map)
 {
     if(skillID== "basic_attack")
         map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 1);
 }
开发者ID:pgonzbecer,项目名称:Conquest,代码行数:6,代码来源:Profession.cs

示例5: showSkillRange

 // Shows the range of the skill given it's id
 public override void showSkillRange(string skillID, Unit unit, ref BattleMap map)
 {
     switch(skillID)
     {
         case "enrage":
         case "stockpile_rage":
             map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 0);
             break;
         case "basic_attack":
         case "furious_slash":
         case "intimidate":
         case "let_loose":
         case "suicidal_slash":
         case "fury_swipes":
         case "counter_swipe":
             map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 1);
             break;
         case "piercing_jab":	map.attackSearchStraightLine(unit.mapPos[0], unit.mapPos[1], 2);	break;
         case "raging_battlecry":	map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 1);	break;
     }
 }
开发者ID:pgonzbecer,项目名称:Conquest,代码行数:22,代码来源:Berserker.cs

示例6: showSkillRange

        // Shows the range of the skill given it's id
        public override void showSkillRange(string skillID, Unit unit, ref BattleMap map)
        {
            switch(skillID)
            {
                case "basic_attack":
                    map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 1);
                    break;

                case "smite":
                    map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 3);
                    break;

                case "prophetic_reap":
                    map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 0);
                    break;

                case "mend":
                    map.healSearch(unit.mapPos[0], unit.mapPos[1], 1, 4);
                    break;

                case "rally_spirit":
                case "multicure":
                case "healing_prayer":
                    map.healSearch(unit.mapPos[0], unit.mapPos[1], 0, 0);
                    break;

                case "armor_of_god":
                    map.healSearch(unit.mapPos[0], unit.mapPos[1], 0, 1);
                    break;

                case "banish_spirits":
                case "rejuvinate":
                case "rest_in_god":
                    map.healSearch(unit.mapPos[0], unit.mapPos[1], 1, 3);
                    break;
            }
        }
开发者ID:pgonzbecer,项目名称:Conquest,代码行数:38,代码来源:Cardinal.cs


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