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


C# AbilityType類代碼示例

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


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

示例1: ExitPlacing

	protected virtual void ExitPlacing(int numPlaced, AbilityType aType){
		AbilityObjectPlacedMessage objMess = new AbilityObjectPlacedMessage (numPlaced, aType);
		MessageCenter.Instance.Broadcast (objMess);
		AbilityStatusChangedMessage abMess = new AbilityStatusChangedMessage (false);
		MessageCenter.Instance.Broadcast (abMess);
		Destroy (this.gameObject);
	}
開發者ID:mezosaurus,項目名稱:eae-project,代碼行數:7,代碼來源:ObjectPlacer.cs

示例2: Ability

 public Ability(int cooldown, int power, int moveSpeed, AbilityType type, float specialPower)
 {
     Cooldown = cooldown;
     AbilityPower = power;
     MoveSpeed = moveSpeed;
     SpecialPower = specialPower;
     Type = type;
 }
開發者ID:Grahamcraker,項目名稱:Project_Greenhorn,代碼行數:8,代碼來源:GameObject.cs

示例3: ActionNotUsableWhenBlockedByStatusEffect

 public void ActionNotUsableWhenBlockedByStatusEffect(
     AbilityType abilityType,
     StatusEffect statusEffect)
 {
     battleAbility.Ability.AbilityType = abilityType;
     player.StatusEffects = new StatusEffect[] { statusEffect };
     VerifyActionNotUsable();
 }
開發者ID:EasyFarm,項目名稱:EasyFarm,代碼行數:8,代碼來源:ActionFilterTests.cs

示例4: NotRecastableWhenOnRecast

 public void NotRecastableWhenOnRecast(AbilityType abilityType)
 {
     ability.AbilityType = abilityType;
     var memoryApi = new FakeMemoryAPI();
     memoryApi.Timer = new FakeTimer() { ActionRecast = 1 };
     var result = AbilityUtils.IsRecastable(memoryApi, ability);
     Assert.False(result);
 }
開發者ID:EasyFarm,項目名稱:EasyFarm,代碼行數:8,代碼來源:AbilityUtilsTests.cs

示例5: IsRecastableWhenNotOnRecast

 public void IsRecastableWhenNotOnRecast(AbilityType abilityType)
 {
     ability.AbilityType = abilityType;
     var memoryApi = new FakeMemoryAPI();
     memoryApi.Timer = new FakeTimer();
     var result = AbilityUtils.IsRecastable(memoryApi, ability);
     Assert.True(result);
 }
開發者ID:EasyFarm,項目名稱:EasyFarm,代碼行數:8,代碼來源:AbilityUtilsTests.cs

示例6: AttackPoDun

 /// <summary>
 /// 破盾
 /// </summary>
 /// <param name="general"></param>
 /// <param name="abilityType"></param>
 /// <returns></returns>
 public static bool AttackPoDun(CombatGeneral general, AbilityType abilityType)
 {
     SkillLvInfo skillLvInfo = CreateSkillLvInfo(general).Find(m => m.EffType == abilityType);
     if (skillLvInfo != null && RandomUtils.IsHit(skillLvInfo.Probability))
     {
         return true;
     }
     return false;
 }
開發者ID:rongxiong,項目名稱:Scut,代碼行數:15,代碼來源:TrumpAbilityAttack.cs

示例7: BossMonster

 public BossMonster(int monsterMaxHealth, AbilityType? type = null)
     : base(monsterMaxHealth, type ?? AbilityType.Kamakaze)
 {
     Size = new Size((int)(Width * 1.5), (int)(Height * 1.5));
     Speed = MaxSpeed = MaxSpeed * 0.75;
     _gravityConstant = 400;
     FoeType = FoeType.Boss;
     SetMonsterSize();
 }
開發者ID:PretentiousGames,項目名稱:towerDefense,代碼行數:9,代碼來源:BossMonster.cs

示例8: Ability

 public Ability(int cooldown, int minPower, int maxPower, AbilityType abilityType, string textureName)
 {
     _cooldown = cooldown;
       _minPower = minPower;
       _maxPower = maxPower;
       TextureName = textureName;
       AbilityType = abilityType;
       _rand = new Random();
 }
開發者ID:CrappySolutions,項目名稱:firstgame,代碼行數:9,代碼來源:Ability.cs

示例9: Skill

 public Skill(uint id, string name, uint ability, uint type, uint cost, uint aoe, uint range, float cooldown) {
     skillID = id;
     skillName = name;
     skillAbility = (AbilityType)ability;
     skillType = (SkillType)type;
     skillCost = cost;
     skillAoe = aoe;
     skillRange = range;
     skillCooldown = cooldown;
 }
開發者ID:EOTD,項目名稱:Err-of-the-Divine,代碼行數:10,代碼來源:Skill.cs

示例10: Ability

        public Ability(AbilityType type, PhaseType phase, LimitType limit, string text)
        {
            if (text == null)
                throw new ArgumentNullException("text");

            this.type = type;
            this.phase = phase;
            this.limit = limit;
            this.text = text;
        }
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:10,代碼來源:Ability.cs

示例11: AbstractActionAbility

 protected AbstractActionAbility(String name, int actionCost, AbilityType abilityType, TargetTypes targetTypes,
     DefaultTargetType defaultTarget, AnimationType animType , AbstractDamageBehaviour damageBehaviour)
     : base(name, actionCost, abilityType)
 {
     this.TargetType = targetTypes;
     this.DefaultTarget = defaultTarget;
     abilityType |= AbilityType.Action;
     //this.AnimationBehaviour = animBehaviour;
     this.DamageBehaviour = damageBehaviour;
     this.AnimationType = animType;
 }
開發者ID:sjai013,項目名稱:RPGv2,代碼行數:11,代碼來源:AbstractActionAbility.cs

示例12: CharAbility

 //constructor for instant, 1-time abilities, no DOTs
 public CharAbility(bool limitedByRange, List<AbilityStatsToAffect> characterStatsToEffect, AbilityType type, AbilityPosibleTargets possibleTargets, string name, int id, int range = 0)
 {
     this.limitedByRange = limitedByRange;
     this.characterStatsToEffect = characterStatsToEffect;
     this.type = type;
     this.name = name;
     this.id = id;
     this.range = range;
     this.overTime = false;
     this.overTimeRounds = 0;
     this.abilityPossibleTargets = possibleTargets;
 }
開發者ID:TensAndTwenties,項目名稱:Ruin,代碼行數:13,代碼來源:Ability.cs

示例13: IsSpell

 /// <summary>
 ///     Represents all the types that are spells or casted.
 /// </summary>
 public static bool IsSpell(AbilityType abilityType)
 {
     switch (abilityType)
     {
         case AbilityType.Magic:
         case AbilityType.Ninjutsu:
         case AbilityType.Song:
         case AbilityType.Item:
             return true;
         default:
             return false;
     }
 }
開發者ID:EasyFarm,項目名稱:EasyFarm,代碼行數:16,代碼來源:ResourceHelper.cs

示例14: GetTrumpProperty

 /// <summary>
 /// 法寶基礎屬性
 /// </summary>
 /// <param name="trumpInfo"></param>
 /// <param name="abilityType"></param>
 /// <returns></returns>
 public static short GetTrumpProperty(TrumpInfo trumpInfo, AbilityType abilityType)
 {
     short propertyNum = 0;
     if (trumpInfo.Property.Count > 0)
     {
         GeneralProperty property = trumpInfo.Property.Find(m => m.AbilityType == abilityType);
         if (property != null)
         {
             propertyNum = (short)property.AbilityValue;
         }
     }
     return propertyNum;
 }
開發者ID:jinfei426,項目名稱:Scut,代碼行數:19,代碼來源:TrumpHelper.cs

示例15: IsAbility

        /// <summary>
        ///     Represents all the types that are not spells or casted.
        /// </summary>
        public static bool IsAbility(AbilityType abilityType)
        {
            switch (abilityType)
            {
                case AbilityType.Weaponskill:
                case AbilityType.Range:
                case AbilityType.Jobability:
                case AbilityType.Pet:
                case AbilityType.Monsterskill:
                    return true;

                default:
                    return false;
            }
        }
開發者ID:EasyFarm,項目名稱:EasyFarm,代碼行數:18,代碼來源:ResourceHelper.cs


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