public void spawnFort(FortificationType type) { _arena.sendArenaMessage("!Scouts are reporting enemy Fortification up ahead, keep a lookout!", 4); Helpers.ObjectState warpPoint = _baseScript.findFlagWarp(_botTeam, false); Fortification newFort = new Fortification(type, warpPoint.positionX, warpPoint.positionY, _botTeam, _arena); }
public Fortification(FortificationType type, short positionX, short positionY, Team team, Arena arena) { _state = new Helpers.ObjectState(); _state.positionX = positionX; _state.positionY = positionY; _team = team; _arena = arena; switch (type) { case FortificationType.Light: { spawnLightFort(); break; } } }
/// <summary> /// Initializes a new instance of the /// <see cref="T:Core.Domain.Items.Armor.Enchantments.Paizo.CoreRulebook.Fortification"/> class. /// </summary> /// <param name="protectionLevel">The level of protection afforded by this Fortification enchantment.</param> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when an argument is a nonstandard enum.</exception> internal Fortification(FortificationType protectionLevel) { switch (protectionLevel) { case FortificationType.Light: this.SpecialAbilityBonus = 1; break; case FortificationType.Medium: this.SpecialAbilityBonus = 3; break; case FortificationType.Heavy: this.SpecialAbilityBonus = 5; break; default: throw new InvalidEnumArgumentException(nameof(protectionLevel), (int)protectionLevel, protectionLevel.GetType()); } this.Name = new NameFragment($"{ protectionLevel } Fortification", "http://www.d20pfsrd.com/magic-items/magic-armor/magic-armor-and-shield-special-abilities/fortification/"); }
/// <summary> /// Enchants this armor with Fortification. /// </summary> /// <param name="protectionLevel">The level of protection bestowed by this armor's enchantment.</param> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when the protectionLevel argument is a nonstandard enum.</exception> /// <exception cref="System.InvalidOperationException">Thrown when this armor does not already have a magical enhancement bonus, or when this enchantment has already been applied.</exception> new public FullPlate EnchantWithFortification(FortificationType protectionLevel) { base.EnchantWithFortification(protectionLevel); return(this); }
/// <summary> /// Enchants this armor with Fortification. /// </summary> /// <param name="protectionLevel">The level of protection bestowed by this armor's enchantment.</param> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when the protectionLevel argument is a nonstandard enum.</exception> /// <exception cref="System.InvalidOperationException">Thrown when this armor does not already have a magical enhancement bonus, or when this enchantment has already been applied.</exception> new public ChainShirt EnchantWithFortification(FortificationType protectionLevel) { base.EnchantWithFortification(protectionLevel); return(this); }
/// <summary> /// Enchants this armor with Fortification. /// </summary> /// <param name="protectionLevel">The level of protection bestowed by this armor's enchantment.</param> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when the protectionLevel argument is a nonstandard enum.</exception> /// <exception cref="System.InvalidOperationException">Thrown when this armor does not already have a magical enhancement bonus, or when this enchantment has already been applied.</exception> new public BandedMail EnchantWithFortification(FortificationType protectionLevel) { base.EnchantWithFortification(protectionLevel); return(this); }
/// <summary> /// Enchants this armor with Fortification. /// </summary> /// <param name="protectionLevel">The level of protection bestowed by this armor's enchantment.</param> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when the protectionLevel argument is a nonstandard enum.</exception> /// <exception cref="System.InvalidOperationException">Thrown when this armor does not already have a magical enhancement bonus, or when this enchantment has already been applied.</exception> new public PaddedArmor EnchantWithFortification(FortificationType protectionLevel) { base.EnchantWithFortification(protectionLevel); return this; }
/// <summary> /// Enchants this shield with Fortification. /// </summary> /// <returns>This shield.</returns> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when the protectionLevel argument is a nonstandard enum.</exception> /// <exception cref="System.InvalidOperationException">Thrown when this shield does not already have a magical enhancement bonus, or when this enchantment has already been applied.</exception> new public TowerShield EnchantWithFortification(FortificationType protectionLevel) { base.EnchantWithFortification(protectionLevel); return(this); }
/// <summary> /// Enchants this armor with Fortification. /// </summary> /// <param name="protectionLevel">The level of protection bestowed by this armor's enchantment.</param> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when the protectionLevel argument is a nonstandard enum.</exception> /// <exception cref="System.InvalidOperationException">Thrown when this armor does not already have a magical enhancement bonus, or when this enchantment has already been applied.</exception> new public HideArmor EnchantWithFortification(FortificationType protectionLevel) { base.EnchantWithFortification(protectionLevel); return(this); }
/// <summary> /// Enchants this armor with Fortification. /// </summary> /// <param name="protectionLevel">The level of protection bestowed by this armor's enchantment.</param> /// <exception cref="System.ComponentModel.InvalidEnumArgumentException">Thrown when the protectionLevel argument is a nonstandard enum.</exception> /// <exception cref="System.InvalidOperationException">Thrown when this armor does not already have a magical enhancement bonus, or when this enchantment has already been applied.</exception> new public StuddedLeatherArmor EnchantWithFortification(FortificationType protectionLevel) { base.EnchantWithFortification(protectionLevel); return(this); }