本文整理汇总了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);
}
示例2: Ability
public Ability(int cooldown, int power, int moveSpeed, AbilityType type, float specialPower)
{
Cooldown = cooldown;
AbilityPower = power;
MoveSpeed = moveSpeed;
SpecialPower = specialPower;
Type = type;
}
示例3: ActionNotUsableWhenBlockedByStatusEffect
public void ActionNotUsableWhenBlockedByStatusEffect(
AbilityType abilityType,
StatusEffect statusEffect)
{
battleAbility.Ability.AbilityType = abilityType;
player.StatusEffects = new StatusEffect[] { statusEffect };
VerifyActionNotUsable();
}
示例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);
}
示例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);
}
示例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;
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
}