• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# AIType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



AIType类属于命名空间,在下文中一共展示了AIType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ArmyBase

		public ArmyBase(int Team, AIType iAI, FightMode iFightMode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed) 
            : base(iAI, iFightMode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed)
		{
			this.Body = 400 + Utility.Random(2);
			this.Hue = Utility.RandomSkinHue();
            this.Team = Team;

			this.Skills[SkillName.DetectHidden].Base = 100;
            this.Skills[SkillName.MagicResist].Base = 120;

			int iHue = 20 + Team * 40;
			int jHue = 25 + Team * 40;

			Item hair = new Item( Utility.RandomList( 0x203C, 0x203B, 0x203C, 0x203D ) );
			hair.Hue = iHue;
			hair.Layer = Layer.Hair;
			hair.Movable = false;
			AddItem( hair );

			LeatherGloves glv = new LeatherGloves();
			glv.Hue = iHue;
			glv.LootType = LootType.Newbied;
			AddItem(glv);

			Container pack = new Backpack();

			pack.Movable = false;

			AddItem( pack );

			m_Timer = new AutokillTimer(this);
			m_Timer.Start();
		}
开发者ID:nick12344356,项目名称:The-Basement,代码行数:33,代码来源:ArmyBase.cs


示例2: BaseCreatureStatue

        //Allows to change all base creature and res type.
        public BaseCreatureStatue(int BodyValue, ResType restype, Direction direction, AIType ai, FightMode mode, int RangePerception, int RangeFight,
            double ActiveSpeed, double PassiveSpeed)
            : base(AIType.AI_Melee,FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body = BodyValue;
            mResTyp = restype;
            mDirection = direction;
            AI = ai;
            FightMode = mode;
            RangePerception = RangePerception;
            RangeFight = RangeFight;
            ActiveSpeed = ActiveSpeed;
            PassiveSpeed = PassiveSpeed;
            m_ResType = restype;

            CantWalk = true;
            Paralyzed = true;
            Blessed = true;

            Timer.DelayCall(TimeSpan.Zero, Freeze);
            Timer.DelayCall(TimeSpan.Zero, SetUpBase);

            SolidHueOverride = (int)m_ResType;

             //One base for each creature.
            m_base = new CreatureStatueBase(this);
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:28,代码来源:BaseCreatureStatue.cs


示例3: RoomBot

 internal RoomBot(uint BotId, uint OwnerId, UInt32 RoomId, AIType AiType, string WalkingMode, string Name, string Motto, string Look,
     int X, int Y, double Z, int Rot, int minX, int minY, int maxX, int maxY, ref List<RandomSpeech> Speeches, 
     ref List<BotResponse> Responses, string Gender, int Dance)
 {
     this.OwnerId = OwnerId;
     this.BotId = BotId;
     this.RoomId = RoomId;
     this.AiType = AiType;
     this.WalkingMode = WalkingMode;
     this.Name = Name;
     this.Motto = Motto;
     this.Look = Look;
     this.X = X;
     this.Y = Y;
     this.Z = Z;
     this.Rot = Rot;
     this.minX = minX;
     this.minY = minY;
     this.maxX = maxX;
     this.maxY = maxY;
     this.Gender = Gender.ToUpper();
     this.VirtualId = -1;
     this.RoomUser = null;
     this.DanceId = Dance;
     this.RandomSpeech = Speeches;
     this.Responses = Responses;
 }
开发者ID:BjkGkh,项目名称:Custom-R2,代码行数:27,代码来源:RoomBot.cs


示例4: FunctionSymbol

 internal FunctionSymbol(string/*!*/ display, AIType/*!*/ typ) {
   Contract.Requires(typ != null);
   Contract.Requires(display != null);
   this.display = display;
   this.typ = typ;
   //            base();
 }
开发者ID:Chenguang-Zhu,项目名称:ICE-C5,代码行数:7,代码来源:CommonFunctionSymbols.cs


示例5: BaseMustang

		public BaseMustang( int bodyID, int itemID, AIType aiType, FightMode fightMode, int rangePerception, int rangeFight, double activeSpeed, double passiveSpeed ) : base ( "Un Mustang", bodyID, itemID, aiType, fightMode, rangePerception, rangeFight, activeSpeed, passiveSpeed )
		{

			BaseSoundID = 0xA8;

			SetStr( 70, 120 );
			SetDex( 70, 105 );
			SetInt( 9, 15 );

			SetHits( 80, 120 );
			SetMana( 0 );

			SetDamage( 3, 4 );

			SetDamageType( ResistanceType.Physical, 100 );

			SetResistance( ResistanceType.Physical, 25, 35 );
			SetResistance( ResistanceType.Fire, 10, 20 );
			SetResistance( ResistanceType.Cold, 10, 20 );
			SetResistance( ResistanceType.Poison, 10, 20 );
			SetResistance( ResistanceType.Energy, 10, 20 );

			SetSkill( SkillName.MagicResist, 25.1, 30.0 );
			SetSkill( SkillName.Tactics, 29.3, 44.0 );
			SetSkill( SkillName.Wrestling, 29.3, 44.0 );

			Fame = 300;
			Karma = 300;

			Tamable = true;
			ControlSlots = 1;
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:32,代码来源:BaseMustang.cs


示例6: Monster

        public Monster(AIType ai, int x, int y, String name, int level, TCODColor color, char c, bool miniboss, bool finalboss, int toHit, int damage, int health, int AC, int dodge, int speed)
        {
            this.x = x;
            this.y = y;
            this.origX = x;
            this.origY = y;

            this.name = name;
            this.level = level;
            this.ai = ai;

            this.color = color;
            this.c = c;

            this.toHit = toHit;
            this.damage = damage;
            this.health = health;
            this.AC = AC;
            this.dodge = dodge;

            this.miniboss = miniboss;
            this.finalboss = finalboss;

            this.speed = speed;
            this.walk = true;
            this.counter = 4;
        }
开发者ID:KasHald,项目名称:UltraLightRogue,代码行数:27,代码来源:Monster.cs


示例7: BaseMount

		public BaseMount( string name, int bodyID, int itemID, AIType aiType, FightMode fightMode, int rangePerception, int rangeFight, double activeSpeed, double passiveSpeed ) : base ( aiType, fightMode, rangePerception, rangeFight, activeSpeed, passiveSpeed )
		{
			Name = name;
			Body = bodyID;

			m_InternalItem = new MountItem( this, itemID );
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:BaseMount.cs


示例8: BaseWarHorse

		public BaseWarHorse( int bodyID, int itemID, AIType aiType, FightMode fightMode, int rangePerception, int rangeFight, double activeSpeed, double passiveSpeed ) : base ( "a war horse", bodyID, itemID, aiType, fightMode, rangePerception, rangeFight, activeSpeed, passiveSpeed )
		{
			BaseSoundID = 0xA8;

			InitStats( Utility.Random( 300, 100 ), 125, 60 );

			SetStr( 400 );
			SetDex( 125 );
			SetInt( 51, 55 );

			SetHits( 240 );
			SetMana( 0 );

			SetDamage( 5, 8 );

			SetDamageType( ResistanceType.Physical, 100 );

			SetResistance( ResistanceType.Physical, 40, 50 );
			SetResistance( ResistanceType.Fire, 30, 40 );
			SetResistance( ResistanceType.Cold, 30, 40 );
			SetResistance( ResistanceType.Poison, 30, 40 );
			SetResistance( ResistanceType.Energy, 30, 40 );

			SetSkill( SkillName.MagicResist, 25.1, 30.0 );
			SetSkill( SkillName.Tactics, 29.3, 44.0 );
			SetSkill( SkillName.Wrestling, 29.3, 44.0 );

			Fame = 300;
			Karma = 300;

			Tamable = true;
			ControlSlots = 1;
			MinTameSkill = 29.1;
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:34,代码来源:BaseWarHorse.cs


示例9: FamousPirates

		public FamousPirates(AIType iAI, FightMode iFightMode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed) : base(iAI, iFightMode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed)
		{
			this.Body = 400;
			this.Hue = Utility.RandomSkinHue();

			this.Skills[SkillName.DetectHidden].Base = 100;
			this.Skills[SkillName.MagicResist].Base = 100;
			this.Skills[SkillName.Magery].Base = 100;
            this.Skills[SkillName.Healing].Base = 100;

			int Hue = 0 ;

			Utility.AssignRandomHair( this, Hue );

			LeatherGloves glv = new LeatherGloves();
			glv.Hue = Hue;
			glv.LootType = LootType.Regular;
			AddItem(glv);

			Container pack = new Backpack();

			pack.Movable = false;

			AddItem( pack );

			Kills = 5;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:27,代码来源:FamousPirates.cs


示例10: BaseBlue

 public BaseBlue(AIType ai, FightMode fm, int PR, int FR, double AS, double PS)
     : base(ai, fm, PR, FR, AS, PS)
 {
     SpeechHue = Utility.RandomDyedHue();
     Hue = Utility.RandomSkinHue();
     //			RangePerception = BaseCreature.DefaultRangePerception;
 }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:BaseBlue.cs


示例11: GenericBot

        internal GenericBot(int VirtualId, int BotId, AIType Type, bool IsBartender)
        {
            int num = 7;

            using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
            {
                queryreactor.setQuery("SELECT speaking_interval from bots WHERE id = " + BotId);
                num = queryreactor.getInteger();
                queryreactor.setQuery("SELECT automatic_chat from bots WHERE id = " + BotId);
                this.canSpeak = Convert.ToBoolean(queryreactor.getString());
                queryreactor.setQuery("SELECT mix_phrases from bots WHERE id = " + BotId);
                this.MixPhrases = Convert.ToBoolean(queryreactor.getString());
            }

            this.SpeechTimer = num * 1000;
            this.virtualId = VirtualId;
            this.IsBartender = IsBartender;

            if (SpeechTimer < 2000)
            {
                SpeechTimer = 2000;
            }

            this.moveInterval = 534;

            if (canSpeak || MixPhrases)
            {
                this.chatTimer = new Timer(new TimerCallback(ChatTimerTick), null, SpeechTimer, SpeechTimer);
            }
        }
开发者ID:BjkGkh,项目名称:Mercury,代码行数:30,代码来源:GenericBot.cs


示例12: Dummy

		public Dummy(AIType iAI, FightMode iFightMode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed) : base(iAI, iFightMode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed)
		{
			Body = 400 + Utility.Random(2);
			Hue = Utility.RandomSkinHue();

			Skills[SkillName.DetectHidden].Base = 100;
			Skills[SkillName.MagicResist].Base = 120;

			Team = Utility.Random(3);

			int iHue = 20 + Team * 40;
			int jHue = 25 + Team * 40;

			Utility.AssignRandomHair( this, iHue );

			LeatherGloves glv = new LeatherGloves();
			glv.Hue = iHue;
			glv.LootType = LootType.Newbied;
			AddItem(glv);

			Container pack = new Backpack();

			pack.Movable = false;

			AddItem( pack );

			m_Timer = new AutokillTimer(this);
			m_Timer.Start();
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:29,代码来源:Dummy.cs


示例13: BlueMonster

		public BlueMonster( AIType aitype, FightMode fightmode, int spot, int meleerange, double passivespeed, double activespeed ) : base( aitype, fightmode, spot, meleerange, passivespeed, activespeed )
		{
			m_LastCast = DateTime.Now;

			// forces these skills to defualt to 100.0, just in case.
			SetSkill( SkillName.Forensics, 100.0 );
			SetSkill( SkillName.MagicResist, 100.0 );
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:8,代码来源:BlueMonster.cs


示例14: BaseSeaChampion

        public BaseSeaChampion(Mobile fisher, AIType ai, FightMode fm)
            : base(ai, fm)
        {
            m_NextBoatDamage = DateTime.UtcNow;
            m_InDamageMode = false;
            m_Fisher = fisher;

            m_DamageEntries = new Dictionary<Mobile, int>();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:9,代码来源:BaseSeaChampion.cs


示例15: GetAI

 public static BasicAI GetAI(AIType type, Enemy user)
 {
     switch(type)
     {
         case AIType.BasicMelee:
             return new BasicAI(user);
         default:
             return null;
     }
 }
开发者ID:Desocrit,项目名称:BoDCode,代码行数:10,代码来源:EnemyAI.cs


示例16: GenericBot

        /// <summary>
        /// Initializes a new instance of the <see cref="GenericBot"/> class.
        /// </summary>
        /// <param name="roomBot">The room bot.</param>
        /// <param name="virtualId">The virtual identifier.</param>
        /// <param name="botId">The bot identifier.</param>
        /// <param name="type">The type.</param>
        /// <param name="isBartender">if set to <c>true</c> [is bartender].</param>
        /// <param name="speechInterval">The speech interval.</param>
        internal GenericBot(RoomBot roomBot, int virtualId, int botId, AIType type, bool isBartender, int speechInterval)
        {
            _id = botId;
            _virtualId = virtualId;
            _isBartender = isBartender;
            _speechInterval = speechInterval < 2 ? 2000 : speechInterval * 1000;

            // Get random speach
            if (roomBot != null && roomBot.AutomaticChat && roomBot.RandomSpeech != null && roomBot.RandomSpeech.Any()) _chatTimer = new Timer(ChatTimerTick, null, _speechInterval, _speechInterval);
            _actionCount = Random.Next(10, 30 + virtualId);
        }
开发者ID:BjkGkh,项目名称:Azure2,代码行数:20,代码来源:GenericBot.cs


示例17: TalkingBaseCreature

        public TalkingBaseCreature(AIType ai,
			FightMode mode,
			int iRangePerception,
			int iRangeFight,
			double dActiveSpeed, 
			double dPassiveSpeed)
            : base(ai, mode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed)
        {
            // add the XmlDialog attachment
            m_DialogAttachment = new XmlDialog((string)null);
            XmlAttach.AttachTo(this, m_DialogAttachment);
        }
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:12,代码来源:TalkingBaseCreature.cs


示例18: AuraCreature

		public AuraCreature( AIType aitype, FightMode fightmode, int spot, int meleerange, double passivespeed, double activespeed ) : base( aitype, fightmode, spot, meleerange, passivespeed, activespeed )
		{
			m_AuraDelay = DateTime.Now;
			/*
			Default is ?
			MinAuraDelay = 5;
			MaxAuraDelay = 15;
			MinAuraDamage = 15;
			MaxAuraDamage = 25;
			AuraRange = 3;
			*/
		}
开发者ID:romeov007,项目名称:imagine-uo,代码行数:12,代码来源:AuraCreature.cs


示例19: BaseLinkedCreature

		//the constructor sits inline with the standard BaseCreature constructor, allowing for easy
		//development of custom linked creatures
		public BaseLinkedCreature(AIType ai, FightMode mode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed ) : base( ai, mode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed )
		{
			_LinkedCreatures = new List<BaseLinkedCreature>();
			
			//keep it immortal, hidden, and frozen until it has linked to the desired number
			Blessed = true;
			Frozen = true;
			Hidden = true;
			
			//wait for the mobile to be fully placed in the world before trying to link
			Timer.DelayCall( TimeSpan.FromSeconds( 1 ), new TimerStateCallback( Link_Callback ), null );
			
		}
开发者ID:greeduomacro,项目名称:annox,代码行数:15,代码来源:BaseLinkedCreature.cs


示例20: BaseElf

		public BaseElf( AIType ai, FightMode mode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed )
		: base( ai, mode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed )
		{
			Hue = 1801;
			Body = 0x605;
			Race = Race.Elf;

			Utility.AssignRandomHair( this, false );
			if ( Utility.Random( 10 ) <= 4 )
				HairHue = 0;
			else
				HairHue = Utility.RandomBool() ? Utility.RandomMinMax( 1102, 1149 ) : Utility.RandomMinMax( 1801, 1908 );
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:13,代码来源:BaseElf.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# AList类代码示例发布时间:2022-05-24
下一篇:
C# AIStates类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap